This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| automation:vagrant [2019/05/16 13:27] – jotasandoku | automation:vagrant [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| pip3 install junos-eznc | pip3 install junos-eznc | ||
| pip3 install jxmlease | pip3 install jxmlease | ||
| - | ansible-galaxy install | + | ansible-galaxy install |
| - | install python3-lxml | + | |
| git clone https:// | git clone https:// | ||
| cd [to directory] | cd [to directory] | ||
| Line 24: | Line 24: | ||
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| + | This is to force ansible to use python3.7. If we don't do it ansible will error with messages like : // | ||
| cat > pb.conf.all.commit.yaml | cat > pb.conf.all.commit.yaml | ||
| - Juniper.junos | - Juniper.junos | ||
| Line 31: | Line 32: | ||
| [[https:// | [[https:// | ||
| - | | + | |
| | | ||
| ls host_vars/ | ls host_vars/ | ||
| Line 39: | Line 40: | ||
| Other commands: | Other commands: | ||
| | | ||
| - | vagrant up --debug | + | vagrant up --provider=virtualbox--debug |
| vagrant halt | vagrant halt | ||
| + | vagrant up --no-provision | ||
| vagrant destroy | vagrant destroy | ||
| vboxmanage list runningvms | vboxmanage list runningvms | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ADD LINUX BOX:\\ | ||
| + | vagrant box add centos/7 | ||
| + | vagrant box list | ||
| | | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ORCHESTRATE CONFIG FOR VAGRANT WITH ANSIBLE:\\ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | \\ | ||
| + | BUT WE GET THIS ERROR!!: | ||
| + | [root@mycompany2test.cambridge.mycompany1.co.uk vmx-test-2]# | ||
| + | | ||
| + | PLAY [Change configuration using junos_config module] ************************************************************************************************************************************************************************************************************************************************************************************************ | ||
| + | | ||
| + | TASK [ip_loop : Change configuration using junos_config module] ************************************************************************************************************************************************************************************************************************************************************************************** | ||
| + | fatal: [Router-2]: FAILED! => {" | ||
| + | |||
| + | |||