Skip to content

Commit

Permalink
Bump IP to start sequencing at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
David Farrington committed Mar 23, 2015
1 parent 4a0e967 commit 6e46edf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
---
language: python
python: "2.7"
env:
- NODEJS_INSTALL_METHOD=binary
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible==1.5.0
script:
- echo localhost > inventory
- ansible-playbook -i inventory test.yml --syntax-check
- ansible-playbook -i inventory test.yml --connection=local --sudo
- ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --syntax-check
- ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --connection=local --sudo
- >
ansible-playbook -i inventory test.yml --connection=local --sudo
ansible-playbook -i inventory -e nodejs_install_method=binary test.yml --connection=local --sudo
| grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
6 changes: 4 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# -*- 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 = 'ubuntu/trusty64'
c.vm.network :private_network, ip: '192.168.88.16'
c.vm.network :private_network, ip: '192.168.88.17'
c.vm.hostname = 'anxs.local'
c.vm.provision 'ansible' do |ansible|
ansible.playbook = 'test.yml'
ansible.sudo = true
ansible.inventory_path = 'vagrant-inventory'
ansible.host_key_checking = false
ansible.extra_vars = {
nodejs_install_method: ENV.key?('NODEJS_INSTALL_METHOD') ? ENV['NODEJS_INSTALL_METHOD'] : 'source'
nodejs_install_method: nodejs_install_method
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion vagrant-inventory
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[anxs]
anxs.local ansible_ssh_host=192.168.88.16 ansible_ssh_port=22
anxs.local ansible_ssh_host=192.168.88.17 ansible_ssh_port=22

0 comments on commit 6e46edf

Please sign in to comment.