Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think there's an error in your example. In your "module::my_ssh_auth_keys" defined type you forgot to add

 "key => $key"

Also I had to write my hiera yaml file like this:

mymodule::ssh_keys:
  bob:
    name: bob
    key: AAAAB3NzaC1....
    type: ssh-rsa

Without adding the name attribute, puppet complained, which is strange because i thought the top element (bob) would be the name by default.

I think there's an error in your example. llowders solution. In your "module::my_ssh_auth_keys" defined type you forgot to add

 "key => $key"

Also I had to write my hiera yaml file like this:

mymodule::ssh_keys:
  bob:
    name: bob
    key: AAAAB3NzaC1....
    type: ssh-rsa

Without adding the name attribute, puppet complained, which is strange because i thought the top element (bob) would be the name by default.