aboutsummaryrefslogtreecommitdiffstats
path: root/local_testing/README.md
blob: c600f797f5a3080241ff7293b0964bb6c55cbfb4 (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
# 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
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}
```