Once you have cloned this repository, installed all the requirements and jumped into the directory, you should see this:
```
➜ vagrant status
testhost> vagrant status
vsrx1 not created (virtualbox)
ansible-node not created (virtualbox)
...
...
@@ -109,14 +132,52 @@ ansible-node not created (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
```
4. Activate Vagrant
Type ```vagrant up``` without any argument to activate all of the virtual devices. This may take up to 10-15 mins depending on your device and its connection to the Internet.
```
Launching ```vagrant up``` without any argument turn on all the vms - This may take up to 10-15 mins.
dcunningham@hellfire ~/D/g/ansible-minilab (master)> vagrant up
Bringing machine 'vsrx1' up with 'virtualbox' provider...
Bringing machine 'ansible-node' up with 'virtualbox' provider...
==> vsrx1: Box 'juniper/ffp-12.1X47-D15.4-packetmode' could not be found. Attempting to find and install...
vsrx1: Box Provider: virtualbox
vsrx1: Box Version: >= 0
==> vsrx1: Loading metadata for box 'juniper/ffp-12.1X47-D15.4-packetmode'
Once the VSRX VM ou have to do a little manual configuration on vrsx:
Once the vSRX device is up, you have to do a __little__ manual configuration. The commands are as follows;
```
> vagrant ssh vsrx1
set system login user vagrant class super-user
set system login user vagrant authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key"
set interfaces ge-0/0/1 description "HostOnly network"
set interfaces ge-0/0/1 unit 0 family inet address 192.168.56.11/24
set system services netconf ssh
```
To connect to the vSRX, use the `vagrant ssh` command and the name of the virtual device.
```
testhost> vagrant ssh vsrx1
--- JUNOS 12.1X47-D15.4 built 2014-11-12 02:13:59 UTC
root@vsrx1% cli
root@vsrx1> configure
...
...
@@ -135,29 +196,35 @@ root@vsrx1# set system services netconf ssh
root@vsrx1# commit check
configuration check succeeds
[edit]
root@vsrx1# commit comment “DC - running set commands as per install instructions HELLO SIMONE!” and-quit
root@vsrx1# commit comment “Running set commands as per install instructions” and-quit
commit complete
Exiting configuration mode
root@vsrx1> cd
^
unknown command.
root@vsrx1> exit
root@vsrx1% exit
logout
Connection to 127.0.0.1 closed.
```
#### vvvvv Paste config here vvvvvv
Once this is done, you can log into the Ansible control node (using `vagrant ssh ansible-node`) and launch your first playbook!
set system login user vagrant class super-user
set system login user vagrant authentication ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key"
set interfaces ge-0/0/1 description "HostOnly network"
set interfaces ge-0/0/1 unit 0 family inet address 192.168.56.11/24
set system services netconf ssh
```
testhost> vagrant ssh ansible-node
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-91-generic x86_64)
Once this is done, you can login in ansible (using vagrant ssh ansible-node) and launch your first playbook:
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Dec 9 16:22:59 UTC 2021
System load: 0.1 Processes: 114
Usage of /: 4.9% of 38.71GB Users logged in: 0
Memory usage: 25% IPv4 address for enp0s3: 10.0.2.15
Swap usage: 0% IPv4 address for enp0s8: 192.168.56.199