Skip to content

Commit

Permalink
Add VagrantFile, Inventory + update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Farrington committed Feb 24, 2015
1 parent 55e9dca commit 71149dc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ postgresql_user_privileges:
There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml
#### Testing
This project comes with a VagrantFile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`

See [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant

#### License

Expand Down
17 changes: 17 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

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/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box'
c.vm.network :private_network, ip: '192.168.88.3'
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
end
end
end
2 changes: 2 additions & 0 deletions vagrant-inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[anxs]
anxs.local ansible_ssh_host=192.168.88.3 ansible_ssh_port=22

0 comments on commit 71149dc

Please sign in to comment.