OK, it cannot be THAT hard !

Another solution with create_resources:

class sshkeys() {

  include 'stdlib'

  $defaults = {ensure => present}
  $sshkeys = hiera(sshkeys_keys)
  create_resources( 'ssh_authorized_key', $sshkeys, $defaults )

}

Fails with:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Invalid parameter keyuser on node XXXX

If I use hiera_has() instead of hiera() I get the following:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Hiera type mismatch: expected Hash and got Array


What am I doing wrong, I dont get it.... Is it so damn hard to 
automatically create resources from Hiera data...

-- 
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/e3a4e2af-55df-4cac-b98f-37d04c961bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to