Last active
May 12, 2017 12:32
-
-
Save hatifnatt/98c70af3dc17501ff100ee19fc048697 to your computer and use it in GitHub Desktop.
test.check_pillar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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