This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| automation:vagrant [2019/05/16 08:17] – created jotasandoku | automation:vagrant [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| JUNIPER VAGRANT CLOUD: | JUNIPER VAGRANT CLOUD: | ||
| dnf install Git | dnf install Git | ||
| - | sudo dnf -y install vagrant | + | sudo dnf -y install vagrant |
| wget http:// | wget http:// | ||
| dnf update | dnf update | ||
| dnf install @development-tools | dnf install @development-tools | ||
| dnf install kernel-devel kernel-headers dkms qt5-qtx11extras | dnf install kernel-devel kernel-headers dkms qt5-qtx11extras | ||
| - | dnf install VirtualBox-6.0 | + | dnf install VirtualBox-5.2 ## Important, doesn' |
| usermod -a -G vboxusers jaime | usermod -a -G vboxusers jaime | ||
| dnf install ansible | dnf install ansible | ||
| pip install --upgrade pip | pip install --upgrade pip | ||
| - | | + | |
| - | | + | |
| - | pip install jxmlease | + | ansible-galaxy install |
| - | ansible-galaxy install | + | |
| - | install python3-lxml | + | |
| - | pip install | + | |
| git clone https:// | git clone https:// | ||
| cd [to directory] | cd [to directory] | ||
| - | vagrant up | + | |
| + | Increase config.vm.boot_timeout value in Vagrantfile. | ||
| + | config.vm.provider :virtualbox do |vb| | ||
| + | v.gui = true | ||
| + | end | ||
| + | |||
| + | [[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 | ||
| + | - Juniper.junos | ||
| + | vars: | ||
| + | ansible_python_interpreter: | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | vagrant up --provider=virtualbox | ||
| + | | ||
| + | ls host_vars/ | ||
| + | | ||
| + | |||
| + | |||
| + | Other commands: | ||
| + | |||
| + | vagrant up --provider=virtualbox--debug | ||
| + | vagrant halt | ||
| + | vagrant up --no-provision | ||
| + | vagrant destroy | ||
| + | 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! => {" | ||
| + | |||