User Tools

Site Tools


automation:vagrant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
automation:vagrant [2019/05/20 17:23] jotasandokuautomation: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   / ansible-galaxy install Juniper.junos -c
   dnf install python3-lxml   dnf install python3-lxml
   git clone https://github.com/grigorenkoae/vqfx10k-vagrant.git   git clone https://github.com/grigorenkoae/vqfx10k-vagrant.git
Line 24: Line 24:
 [[https://github.com/Juniper/ansible-junos-stdlib/issues/412]] \\ [[https://github.com/Juniper/ansible-junos-stdlib/issues/412]] \\
 [[https://github.com/Juniper/vqfx10k-vagrant/issues/5]] \\ [[https://github.com/Juniper/vqfx10k-vagrant/issues/5]] \\
 +This is to force ansible to use python3.7. If we don't do it ansible will error with messages like : //ImportError: No module named plugins.action.normal//
   cat > pb.conf.all.commit.yaml   cat > pb.conf.all.commit.yaml
     - Juniper.junos     - Juniper.junos
Line 31: Line 32:
 [[https://github.com/Juniper/vqfx10k-vagrant/issues/5]]  [[https://github.com/Juniper/vqfx10k-vagrant/issues/5]] 
  
-   vagrant up --provider=virtualbox+   vagrant up --provider=virtualbox    # delete .vagrant if having issues with running it under normal user (not root)
    vagrant destroy     vagrant destroy 
    ls host_vars/    ls host_vars/
Line 41: Line 42:
   vagrant up --provider=virtualbox--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://www.linkedin.com/pulse/network-automation-using-ansibleplaybookspart-4-ahnaf-shahriar/]]
 +
 +\\
 +BUT WE GET THIS ERROR!!:
 +  [root@mycompany2test.cambridge.mycompany1.co.uk vmx-test-2]# ansible-playbook -i ini/hosts -l all playbook.yml
 +  
 +  PLAY [Change configuration using junos_config module] ************************************************************************************************************************************************************************************************************************************************************************************************
 +  
 +  TASK [ip_loop : Change configuration using junos_config module] **************************************************************************************************************************************************************************************************************************************************************************************
 +  fatal: [Router-2]: FAILED! => {"msg": "'interfaces' is undefined"}
 +
 +
automation/vagrant.1558373034.txt.gz · Last modified: (external edit)