Last active
July 10, 2017 14:28
-
-
Save 1ma/126689544893c9fbc90165adf9e4d5d8 to your computer and use it in GitHub Desktop.
centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
config.vm.network "private_network", ip: "10.0.1.10" | |
config.ssh.forward_agent = true | |
config.vm.synced_folder "./", "/vagrant", type: "virtualbox" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--cpus", "1"] | |
vb.customize ["modifyvm", :id, "--memory", "512"] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
yum install -y https://centos7.iuscommunity.org/ius-release.rpm | |
yum update -y | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment