Skip to content

Instantly share code, notes, and snippets.

@Resisty
Last active December 22, 2015 05:58
Show Gist options
  • Save Resisty/6427551 to your computer and use it in GitHub Desktop.
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.
mydataitem:
- username: "butts"
- pass: "lol"
$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