diff options
Diffstat (limited to 'ansible/local_testing/README.md')
| -rw-r--r-- | ansible/local_testing/README.md | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ansible/local_testing/README.md b/ansible/local_testing/README.md new file mode 100644 index 0000000..db3c409 --- /dev/null +++ b/ansible/local_testing/README.md @@ -0,0 +1,50 @@ +# Testing Locally + +### Requirements + +- [Vagrant](https://developer.hashicorp.com/vagrant/docs/installation) +- [VirtualBox](https://www.virtualbox.org/wiki/Downloads) + +## Get Started + +```shell +vagrant up # This will take a while +vagrant ssh # Get a shell, password=vagrant + +# inside control VM +/vagrant/scripts/push-keys # Push the control VM's ssh key to all nodes + +# run ansible +cd infra +# if you're on Windows, the `infra` directory will be mounted with permissions set to 777 +# which ansible will reject as insecure +# export the below environment variable to force anisble to accept the writable config +# export ANSIBLE_CONFIG='/home/vagrant/infra/ansible.cfg' +ansible-playbook playbook.yml --inventory local_testing/hosts.yaml --user vagrant +``` + +Below are the IPs of the VMs on the VirtualBox network +```yaml +vms: +- control: 192.168.56.1 +- hopper: 192.168.56.2 +- lovelace: 192.168.56.3 +- neumann: 192.168.56.4 +- richie: 192.168.56.5 +- turing: 192.168.56.6 +``` + + +# Fixes/Notes + +### There was an error when attempting to rsync a synced folder. + +```shell +vagrant plugin install vagrant-vbguest +``` + + +### Kernel module is not loaded +```shell +sudo modprobe vbox{drv,netadp,netflt} +``` |