Created
April 4, 2015 23:11
-
-
Save gcman105/10fe90c12257177fa3f7 to your computer and use it in GitHub Desktop.
vag1
This file contains hidden or 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
# argument is a set of non-required options. | |
config.vm.synced_folder "./vagrant_data/html/", "/usr/share/nginx/html/" | |
# Example for VirtualBox: | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = false | |
# Customize the amount of memory on the VM: | |
vb.memory = "1024" | |
end | |
# Network | |
config.vm.network :forwarded_port, host: 4567, guest: 80 | |
# Run the bootstrap shell script on VM | |
config.vm.provision :shell, path: "bootstrap.sh" | |
# Provision the VM with ansible | |
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "ansible/playbooks/play.yml" | |
ansible.sudo = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment