Skip to content

Instantly share code, notes, and snippets.

@StalkAlex
Created January 13, 2016 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StalkAlex/83812b7f43a053cd228b to your computer and use it in GitHub Desktop.
Save StalkAlex/83812b7f43a053cd228b to your computer and use it in GitHub Desktop.
Vagrant.configure(2) do |config|
config.vm.provider :virtualbox do |v|
v.name = "my_name"
v.customize [
"modifyvm", :id,
"--name", "my_name",
"--memory", 1024,
"--cpus", 1,
]
end
config.vm.box = "centos/7"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 5432, host: 54320
config.vbguest.auto_update = true
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "ansible/install.yml"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment