blob: db3c409d21e605d41d2f41c209f4c6dc45fd6787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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}
```
|