Skip to content

Instantly share code, notes, and snippets.

@three18ti
Created August 24, 2012 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save three18ti/3445805 to your computer and use it in GitHub Desktop.
Save three18ti/3445805 to your computer and use it in GitHub Desktop.
class { "authorized-sshkey::root":
authorized_keys => {
[
{
method => "ssh-rsa",
key => "asdf",
user => "jon@red5",
},
# {
# method => "ssh-dsa",
# key => "somedshkey",
# user => "foo@bar",
# },
],
}
}
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template authorized-sshkey/authorized-keys.erb:
Filepath: /etc/puppet/modules/authorized-sshkey/templates/authorized-keys.erb
Line: 2
Detail: wrong number of arguments (0 for 1)
at /etc/puppet/modules/authorized-sshkey/manifests/root.pp:13 on node 84166780cfc5012f9dd4001422234e00
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at '['; expected ']' at /etc/puppet/manifests/nodes/hv1.pp:39 on node 84166780cfc5012f9dd4001422234e00
<%- authorized_keys.each do |key| -%>
<%- key.method -%> <%- key.key -%> <%- key.user %>
<%- end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment