Skip to content

Instantly share code, notes, and snippets.

@hatifnatt
Last active May 12, 2017 12:32
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 hatifnatt/98c70af3dc17501ff100ee19fc048697 to your computer and use it in GitHub Desktop.
Save hatifnatt/98c70af3dc17501ff100ee19fc048697 to your computer and use it in GitHub Desktop.
test.check_pillar
Solution: there must be full "path" to key separated by colon, like "haproxy_csync2:master".
pillar data:
haproxy_csync2:
master: "rp-01"
slaves:
- "rp-02"
state data:
check_haproxy_csync2_pillar:
test.check_pillar:
- verbose: True
- present:
- haproxy_csync2
- string:
- haproxy_csync2:master
- listing:
- haproxy_csync2:slaves
output:
ID: check_haproxy_csync2_pillar
Function: test.check_pillar
Result: False
Comment: Pillar key "master" is missing.
Pillar key "slaves" is missing.
Those keys passed the check:
- haproxy_csync2 (None)
Started: 15:02:38.113953
Duration: 0.764 ms
Changes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment