Hello again and thanks for the great suggestions ! I tried the solution Martin proposed, installed stdlib and changed my hiera data, but I get a syntax error in the hiera array definition I cannot seem to understand:
Error 400 on SERVER: syntax errpr on line 55, col 9: ' keyname: puppekey' at /puppet/environments/development/manifests/site.pp:15 The line 55 is exactly where the new data definition is taking place in hiera: sshkeys_keys: keyname: puppetkey key: 'aasdfoas6fa97dstf0ads7tf0a87sdtf0as87dtf0as7tdf0as' keytype: 'ssh-rsa' keyuser: 'root' Am I doing something wrong with the array definition in hiera? My module code looks like this: class sshkeys { include 'stdlib' define keyentry(){ .... } $sshkeys=hiera("sshkeys_keys") $sshkeys_keys = keys($sshkeys) keyentry{ $sshkeys_keys: } } Cheers, Konstantin Boyanov -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/81207519-01b2-4c0e-8d46-8f0cdc05443d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.