I can''t seem to get the authorized_key type to work at all on my systems. Below is my configuration that I used. I could have something missing but the examples I see make it difficult to compare. Additionally if I try and do the reverse using puppet resource nothing comes up: puppet resource ssh_authorized_key (this returns nothing) puppet resource ssh_authorized_key username (this returns the following) /usr/lib/ruby/site_ruby/1.8/puppet/type/ssh_authorized_key.rb:89:in `validate'': undefined method `[]'' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1738:in `initialize'' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:5:in `new'' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:5:in `find'' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' from /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:79:in `main'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:295:in `run_command'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'' from /usr/bin/puppet:4 My module''s init.pp http://pastebin.com/4aBYjJQq Does anybody else have this working in their environment? Corey Osman -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Apr 07, 2011 at 10:51:04AM -0700, Corey Osman wrote:> puppet resource ssh_authorized_key (this returns nothing) > > puppet resource ssh_authorized_key username (this returns the following)Hmm, yes, the ssh_authorized_key key parameter isn''t the username. Though that is not a very optimal error message. If you change encryption to type, I had that working for me. ssh_authorized_key{ "macbook-root": ensure => present, key => "AAAAB3NzaC1yc2EAAAABIwAAAQEAxsDSms5CWF1iKlyCFLaPfs0It4dDXwhH1W2REzz7K/b5pXsOJyOzCHEO6odcHda039GHMc36rrkO6qOOQlU/6J6wZhqTc02P9OkkCcTT9404SCC5TMgXV+obdgMjNzIE5R46fC8buUO/sYcew31KBRhmvcahyvvqeHOXkj8jHYUw3IjI2+Yn+OczXjS23NMwGTc5dhEw+BLBeoIzNZ1+2bvzKZTtuadEF6WJcBDld7CoC65UFwiyO9Vls8O4PNrusObbgzD2RXp3UyX06tPQa/HACbhvPt3kqin061vvmXSW64GK47P6Pkvk5aS8YB2J4qLemKH3NjPx05gPWQ==", name => "macbook pro key", type => "ssh-rsa", user =>"corey", } -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ben, What do you mean change encryption to type? Do you mean change type => "ssh-rsa" to encryption=> "ssh-rsa"? On Apr 7, 5:18 pm, Ben Hughes <b...@puppetlabs.com> wrote:> On Thu, Apr 07, 2011 at 10:51:04AM -0700, Corey Osman wrote: > > puppet resource ssh_authorized_key (this returns nothing) > > > puppet resource ssh_authorized_key username (this returns the following) > > Hmm, yes, the ssh_authorized_key key parameter isn''t the username. Though > that is not a very optimal error message. > > If you change encryption to type, I had that working for me. > > ssh_authorized_key{ "macbook-root": > ensure => present, > key => "AAAAB3NzaC1yc2EAAAABIwAAAQEAxsDSms5CWF1iKlyCFLaPfs0It4dDXwhH1W2REzz7K/b5pXsOJyOzCHEO6odcHda039GHMc36rrkO6qOOQlU/6J6wZhqTc02P9OkkCcTT9404SCC5TMgXV+obdgMjNzIE5R46fC8buUO/sYcew31KBRhmvcahyvvqeHOXkj8jHYUw3IjI2+Yn+OczXjS23NMwGTc5dhEw+BLBeoIzNZ1+2bvzKZTtuadEF6WJcBDld7CoC65UFwiyO9Vls8O4PNrusObbgzD2RXp3UyX06tPQa/HACbhvPt3kqin061vvmXSW64GK47P6Pkvk5aS8YB2J4qLemKH3NjPx05gPWQ==", > name => "macbook pro key", > type => "ssh-rsa", > user =>"corey", > } > > -- > Ben Hughes ||http://www.puppetlabs.com/-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ben Hughes
2011-Apr-11 00:04 UTC
Re: [Puppet Users] Re: ssh_authorized_key type not working
On Fri, Apr 08, 2011 at 09:50:12AM -0700, Corey Osman wrote:> What do you mean change encryption to type? Do you mean change type > => "ssh-rsa" to encryption=> "ssh-rsa"?Yeah, encryption isn''t a valid keyword. You need "type => ''...'' instead. -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.