Last active
November 5, 2015 19:45
-
-
Save jcoyne/20e18e6f24237c4e61a5 to your computer and use it in GitHub Desktop.
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# Vagrant configuration options are fully documented at | |
# https://docs.vagrantup.com. | |
config.vm.box = "Mark_Centos_7" | |
#config.ssh.private_key_path = "/Users/alicia/dev_ops/vagrant_projects/vagrant-ansible-centos/.vagrant/machines/default/virtualbox/" | |
#config.vm.box_url = "https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box" | |
# Forwarded port mappings allow access to a specific port on the guest vm | |
# from a port on the host machine - to see your vm's port 80, use localhost:8484 | |
config.vm.network "forwarded_port", guest: 80, host: 8484 # apache | |
config.vm.network "forwarded_port", guest: 8080, host: 2424 # tomcat | |
# config.vm.network "forwarded_port", guest: 3000, host: 8032 # webrick | |
# To share an additional folder to the guest VM, state the path on the host | |
# to the actual folder, then the path on the guest to mount the folder. | |
# config.vm.synced_folder "../data", "/vagrant_data" | |
# Provider-specific configuration for VirtualBox: | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
#vb.gui = true | |
# Customize the amount of memory on the VM: | |
vb.memory = 2048 | |
vb.cpus = 2 | |
end | |
# Enable provisioning with Ansible | |
config.vm.provision "ansible" do |ansible| | |
#ansible.verbose = 'vvv' | |
ansible.groups = { | |
"vagrant" => ["default"], | |
"all_groups:children" => ["group1"], | |
} | |
ansible.extra_vars = { | |
deploy_user: "vagrant", | |
project_dir: "/vagrant", | |
server_name: "localhost", | |
rails_env: "development", | |
bundle_path: "~/.bundle" | |
} | |
ansible.playbook = "provisioning/wustl-dev-vagrant.yml" | |
#ansible.playbook = "provisioning/adrl-vagrant.yml" | |
# ansible.playbook = "provisioning/roles/hydra-stack/tasks/solr-4-10-4.yml" | |
# ansible.playbook = "provisioning/wustl-vagrant.yml" | |
ansible.start_at_task = "download libpng source" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment