create the vagrant box | https://app.vagrantup.com/saltstack/boxes/cured-ubuntu1804 1- create a directory 2- change directory
| |||||
| ||||||
modify the files: | ||||||
1- /etc/salt/master |
| |||||
2- /etc/salt/minion |
| |||||
PROXY | junos proxy configuration and pillars files | |||||
install junos-eznc | sudo pip3 install junos-eznc | |||||
3- /etc/salt/proxy |
| |||||
Pillars files: | ||||||
/srv/pillar/mx.sls |
| |||||
/srv/pillar/top.sls |
| |||||
start the proxy #use -l debug option for debugging | sudo salt-proxy --proxyid=fw1_proxy -d sudo salt-proxy --proxyid=fw2_proxy -d | |||||
Accept the salt-key on the master | sudo salt-key -a fw1_proxy sudo salt-key -a fw2_proxy | |||||
Basic test | sudo salt 'fw1_proxy' test.ping sudo salt 'fw1_proxy' junos.facts sudo salt 'fw1_proxy' grains.items | |||||
collect and save it a .xml file | sudo salt "fw2*" junos.cli "show chassis hardware detail " format=xml dest=/tmp/salt/sh | |||||
Page Comparison
General
Content
Integrations