Skip to content

Instantly share code, notes, and snippets.

@biwhite
Created July 1, 2020 12:10
Show Gist options
  • Save biwhite/2d8845592dce7bc7d47a1b60c3b37de4 to your computer and use it in GitHub Desktop.
Save biwhite/2d8845592dce7bc7d47a1b60c3b37de4 to your computer and use it in GitHub Desktop.
## /etc/salt/master
roster: file
roster_file: /etc/salt/roster
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/pillar
- /srv/pillar/devices
## /etc/salt/roster
mynode:
driver: junos
## /etc/salt/proxy
master: localhost
pki_dir: /etc/salt/pki/proxy
pillar_roots:
base:
- /srv/pillar
- /srv/pillar/devices
multiprocessing: False
mine_enabled: True
## /etc/salt/minion
master: localhost
## /etc/pillar/top.sls
base:
mynode:
- mynode
## /etc/pillar/devices/mynode.sls
proxy:
proxytype: napalm
driver: junos
host: mynode
username: myuser
password: mypassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment