This project has been designed to help you to get started easily with SaltStack on Junos. In this project you'll find:
- A docker container with all SaltStack and all Junos Libraries
- Make script to easily start, stop and clean any number of docker containers
- A Use-Case with SaltStack Engine to collect Syslog from Junos and convert them into Events in SaltStack
- A Use-Case with SaltStack Beacon to monitor a Junos string in a file and convert it into Event in SaltStack
- SaltStack Docker Containers for Junos
- Getting Started / 'Hello World' with Engine
- Contributer
- Known Issues
Define uc-engine/pillar/top.sls
for example:
root@host# cat uc-engine/pillar/top.sls
base:
proxy01:
- proxy01
and associate under uc-engine/pillar/
:
root@host# cat uc-engine/pillar/proxy01.sls
proxy:
proxytype: junos
host: 172.17.254.1
username: admin
passwd: juniper1
Under the main directory execute:
root@host# make master-start
or
#make clean will not work if starting docker like that
root@host# docker run -d juniper/saltstack salt-master -l debug
Note: Proxies are getting automatically started within the Salt Master Engine
Verify that saltmaster-engine
is running:
root@host# docker ps
root@host# make master-shell
Check if proxy01 is running under the saltmaster-engine
root@saltmaster-engine# ps -ef | grep proxy01
- Damien Garros
- Iddo Cohen
- Nitin Kumar
- Stephen Steiner
- urllib3\util\ssl_.py - 'SNIMissingWarning, InsecurePlatform' Warnings: Solution is to upgrade Python from 2.7.6 to 2.7.9 or
pip install pyOpenSSL ndg-httpsclient pyasn1
. Please note it does not effect salt-master, salt-minion or salt-proxy, in their functionality. - Currently netconf port 830 must be open on the Junos device Solution is to
set system services netconf ssh
. Please note an option for using port 22 is being added.