Hi, we read hiera data in a variable. Within the loop we can see the value, when we exit the loop the variable sshvalues is empty. Why and how to fix ?
$allkeys = hiera('rootkeys')
$allkeys.each | $userid | {
$sshvalues = $userid['pubkey']
notify {"SSHValue: ${sshvalues}":} --> Value is shown
}
notify { "All Keys: ${sshvalues}":} --> Value is empty
Thanks a lot Sven
↧