Skip to content

Instantly share code, notes, and snippets.

@1ma
Last active July 10, 2017 14:28
Show Gist options
  • Save 1ma/126689544893c9fbc90165adf9e4d5d8 to your computer and use it in GitHub Desktop.
Save 1ma/126689544893c9fbc90165adf9e4d5d8 to your computer and use it in GitHub Desktop.
centos7
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