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.

Reply via email to