-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add install_method to vagrantfile and travis
proper naming of vm hostname rename hostname in inventory as well
- Loading branch information
Jonathan Freedman
committed
Feb 7, 2015
1 parent
7e2a7b9
commit bf5d1d0
Showing
4 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
nodejs_install_method = ENV.key?('NODEJS_INSTALL_METHOD') ? ENV['NODEJS_INSTALL_METHOD'] : 'source' | ||
|
||
Vagrant.configure('2') do |config| | ||
config.vm.define 'anxs' do |c| | ||
c.vm.box = 'anxs-vbox-linux' | ||
c.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" | ||
c.vm.network :private_network, ip: "192.168.88.2" | ||
c.vm.hostname = "anxs-nginx.local" | ||
c.vm.provision "ansible" do |ansible| | ||
ansible.playbook = "test.yml" | ||
c.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box' | ||
c.vm.network :private_network, ip: '192.168.88.2' | ||
c.vm.hostname = 'anxs.local' | ||
c.vm.provision 'ansible' do |ansible| | ||
ansible.playbook = 'test.yml' | ||
ansible.sudo = true | ||
ansible.inventory_path = "vagrant-inventory" | ||
ansible.inventory_path = 'vagrant-inventory' | ||
ansible.host_key_checking = false | ||
ansible.extra_vars = { | ||
nodejs_install_method: nodejs_install_method | ||
} | ||
end | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[anxs] | ||
anxs-nodejs.local ansible_ssh_host=192.168.88.2 ansible_ssh_port=22 | ||
anxs.local ansible_ssh_host=192.168.88.2 ansible_ssh_port=22 |