Puppet probably can't find the class you have declared.
How are you including the init.pp file?
Is this your global init.pp file?

One question.
Why aren't you using the builtin ssh_authorized_key type?
Have a look here.
http://docs.puppetlabs.com/references/latest/type.html#sshauthorizedkey

It's best to manage your users with puppet as well but that's just as easy.

Also using an exec to create a directory is a bit strange.
Just use the file type and put ensure => directory.


On 14 September 2012 10:23, JGonza1 <jgonza1...@gmail.com> wrote:
> This is how my init.pp files looks below and I get this error err: Could not
> retrieve catalog from remote server: Error 400 on SERVER: Could not find
> class sshkey for ct-eng-pats02-devint.caretools.ent at
> /etc/puppet/manifests/nodes/pats02.pp:22 on node
> ct-eng-pats02-devint.caretools.ent
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
> class sshkey {
> # file { "/root/.ssh":
> #      ensure => "directory",
> #      owner => "root",
> #      group => "root",
> #      mode => 600,
> #     }
> exec {'mkdir -p /root/.ssh':
>         unless => 'test -d /root/.ssh',
>   }
>   file {
>     "/root/.ssh/authorized_keys":
>       ensure => file,
>       source => "puppet:///sshkey/authorized_keys",
>       owner => "root",
>       group => "root",
>       mode => 600;
>   }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/kwISVzF-vA8J.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to