Last active
December 22, 2015 05:58
-
-
Save Resisty/6427551 to your computer and use it in GitHub Desktop.
Brian is bad at hiera. Master can lookup data items, client can't.
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
mydataitem: | |
- username: "butts" | |
- pass: "lol" |
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
$mydataitem = hiera('mydataitem') | |
$user = $mydataitem[0]['username'] | |
$pass = $mydataitem[0]['pass'] | |
notify {"This is a string with a user and password in it. User: ${user}. Password: ${pass}": } | |
#The string is written to the client as "This is a string with a user and password in it. User: butts. Password: " | |
#It should write: "This is a string with a user and password in it. User: butts. Password: lol" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment