From 71149dc6ca0077f06076a6e681c02ee8932cf0bc Mon Sep 17 00:00:00 2001 From: David Farrington Date: Tue, 24 Feb 2015 21:33:01 +0000 Subject: [PATCH] Add VagrantFile, Inventory + update docs --- README.md | 4 ++++ Vagrantfile | 17 +++++++++++++++++ vagrant-inventory | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 Vagrantfile create mode 100644 vagrant-inventory diff --git a/README.md b/README.md index 955e7da5..c9a966f5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 00000000..b0562f58 --- /dev/null +++ b/Vagrantfile @@ -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 diff --git a/vagrant-inventory b/vagrant-inventory new file mode 100644 index 00000000..90771a3b --- /dev/null +++ b/vagrant-inventory @@ -0,0 +1,2 @@ +[anxs] +anxs.local ansible_ssh_host=192.168.88.3 ansible_ssh_port=22