Skip to content

Instantly share code, notes, and snippets.

/testmon.sls Secret

Created October 6, 2016 18:12
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 anonymous/8fbbfa5b034d76d57900de7fe78e9ee8 to your computer and use it in GitHub Desktop.
Save anonymous/8fbbfa5b034d76d57900de7fe78e9ee8 to your computer and use it in GitHub Desktop.
Pillar weirdness
salt01 base # salt 'test-saltminion01*' pillar.items
test-saltminion01.domain.com:
----------
env:
tst
envlong:
testing
testmon:
----------
authentication:
----------
engine:
SHA
key:
XXXXXXXXXXXX
encryption:
----------
engine:
AES
key:
XXXXXXXXXXXX
sourceips:
- 10.0.2.80
- 10.0.2.81
username:
snmpmon
usertype:
rouser
salt01 base # salt 'test-saltminion01*' pillar.item testmon
test-saltminion01.domain.com:
----------
testmon:
----------
authentication:
----------
engine:
SHA
key:
XXXXXXXXXXXX
encryption:
----------
engine:
AES
key:
XXXXXXXXXXXX
sourceips:
- 10.0.2.80
- 10.0.2.81
username:
snmpmon
usertype:
rouser
salt01 base # salt 'test-saltminion01*' pillar.item testmon:username
test-saltminion01.domain.com:
----------
salt01 base # salt 'test-saltminion01.domain.com' pillar.item testmon:username
test-saltminion01.domain.com:
----------
salt01 base # salt 'test-saltminion01.domain.com' pillar.item 'testmon:username'
test-saltminion01.domain.com:
----------
salt01 base # salt 'test-saltminion01.domain.com' pillar.item 'testmon.username'
test-saltminion01.domain.com:
----------
salt01 base # salt 'test-saltminion01.domain.com' pillar.item 'testmon.username' --out=txt
test-saltminion01.domain.com: {}
testmon:
sourceips:
- 10.0.2.80
- 10.0.2.81
username: snmpmon
usertype: rouser
encryption:
engine: AES
key: XXXXXXXXXXXX
authentication:
engine: SHA
key: XXXXXXXXXXXX
base:
'test-saltminion01*':
- match: compound
- snmp.testmon
- env.tst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment