Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlecheck 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


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


/srv/pillar/mx.sls


Code Block
titlemx.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.