Closed tim-fiola closed 5 years ago
Salt Version:
Salt: 2017.7.0-854-gf61ccae
Dependency Versions:
cffi: 1.11.5
cherrypy: 3.5.0
dateutil: 2.4.2
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.12 (default, Dec 4 2017, 14:50:18)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 17.0.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.6
System Versions:
dist: Ubuntu 16.04 xenial
locale: UTF-8
machine: x86_64
release: 4.4.0-1066-aws
system: Linux
version: Ubuntu 16.04 xenial
vSRX-4 pillar file /srv/pillar/vSRX-4-details.sls
ubuntu@ip-172-31-33-152:/srv$ cat pillar/vSRX-4-details.sls
# put in /srv/pillar
proxy:
proxytype: napalm
driver: junos
host: 172.31.47.219
user: ubuntu # salt user that will log into device
passwd: '' # no password since we are using ssh keys
optional_args:
key_file: /home/ubuntu/tim-test.pem # ssh key file for device authentication
/srv/pillar/ntp.sls file:
ubuntu@ip-172-31-33-152:/srv$ cat /srv/pillar/ntp.sls
ntp.servers:
- 1.2.3.4
- 5.6.7.8
ntp.peers:
- 10.11.12.13
- 14.15.16.17
I see my error now. It was attempting to apply this to the master, not all the minions, because I had this configured on the master config file. I understand how it works now.
Hello. I'm trying to enforce ntp peers and client configs on a napalm minion via periodic scheduling. It is saying that netconfig.managed is not found in vsrx.ntp. However, that statement does exist in vsrx.ntp
I am seeing this error in the log:
Here is the relevant config in /etc/salt/master:
Here is /srv/states/vsrx/ntp.sls: Notice netconfig.managed is present -
/srv/pillar/top.sls file:
This does work when I initiate via the CLI: sudo salt 'vSRX-4' state.sls vsrx.ntp
SALT version is Nitrogen: