Created
August 24, 2012 05:22
-
-
Save three18ti/3445805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { "authorized-sshkey::root": | |
authorized_keys => { | |
[ | |
{ | |
method => "ssh-rsa", | |
key => "asdf", | |
user => "jon@red5", | |
}, | |
# { | |
# method => "ssh-dsa", | |
# key => "somedshkey", | |
# user => "foo@bar", | |
# }, | |
], | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%- 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