Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Documentation:    https://github.com/ksator/junos-automation-with-saltstack/wiki/09.-Junos-proxy-end-to-end-examples



check python installation
sudo apt-get install python3-pip
sudo pip3 install junos-eznc
sudo python3 -m easy_install --upgrade pyOpenSSL
sudo pip3 install jxmlease





configuration

sudo vi /etc/salt/proxy

master: 172.30.95.91

/srv/pillar/top.sls
top.sls
labuser@saltsackmaster:~$ more /srv/pillar/top.sls
base:
  'fw1_proxy':
    - mx

/srv/pillar/mx.sls
mx.sls
labuser@saltsackmaster:~$ more /srv/pillar/mx.sls
proxy:
  proxytype: junos
  host: 172.30.95.174
  username: Netbox
  password: Netbox
  port: 830

name: SRX300-1-RL102

start the salt proxy 

in debug mode to check that everything is ok:

sudo salt-proxy --proxyid=fw1_proxy -l debug

then in deamon mode



Accept the salt-key

sudo salt-key -L

sudo salt-key -a fw1_proxy

test sudo salt 'fw1_proxy' test.ping
get factssudo salt 'fw1_proxy' junos.facts
grainssudo salt 'fw1_proxy' grains.




  • No labels