Skip to content

Instantly share code, notes, and snippets.

@exarkun
Last active March 19, 2018 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/466e28d2fbb02c7a29b442d37c0d6239 to your computer and use it in GitHub Desktop.
Save exarkun/466e28d2fbb02c7a29b442d37c0d6239 to your computer and use it in GitHub Desktop.
root@668629:/srv# find . -name '*.sls'
./pillar/data.sls
./salt/top.sls
./salt/introducer.sls
./salt/storagenode.sls
./salt/tahoe-lafs.sls
root@668629:/srv# cat salt/top.sls
base:
# https://docs.saltstack.com/en/latest/ref/states/top.html#advanced-minion-targeting
'G@roles:introducer':
- 'introducer'
# https://docs.saltstack.com/en/latest/ref/states/top.html#advanced-minion-targeting
'G@roles:storage':
- 'storagenode'
root@668629:/srv# cat pillar/data.sls
introducer:
location: 'tcp:x.x.x.x:12345'
port: 'tcp:12345'
root@668629:/srv# salt -vvv '*' state.apply
Executing job with jid 20180319092510716414
-------------------------------------------
668629:
Data failed to compile:
----------
Rendering SLS 'base:introducer' failed: Jinja variable 'salt.pillar object' has no attribute 'introducer'
ERROR: Minions returned with non-zero exit code
root@668629:/srv#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment