JGonza1
2012-Sep-14 00:23 UTC
[Puppet Users] I am trying to copy over a authorized_key file over to all the servers using puppet but it doe snot see to work. can any one help?
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Brown
2012-Sep-14 01:11 UTC
Re: [Puppet Users] I am trying to copy over a authorized_key file over to all the servers using puppet but it doe snot see to work. can any one help?
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 <jgonza1495@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
JGonza1
2012-Sep-14 01:18 UTC
[Puppet Users] Re: I am trying to copy over a authorized_key file over to all the servers using puppet but it doe snot see to work. can any one help?
this is my init.pp file. node "ct-eng-pats02-devint" inherits default { include patshosts include users include patslocalhost include patsj2ee include tomcat-prod include ntp include webmanager include webapps include setjava include physjava include weblib include physbasecat include patscommsvcpts include patslinks include patskey include webapps include sharedfiles include patscache include setclassfile include sshkey } On Thursday, September 13, 2012 5:23:50 PM UTC-7, JGonza1 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/-/xcaKUI7GRRAJ. 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.
Luke Bigum
2012-Sep-14 08:21 UTC
Re: [Puppet Users] Re: I am trying to copy over a authorized_key file over to all the servers using puppet but it doe snot see to work. can any one help?
Can you show us the full file structure of your sshkey module as it appears on your puppet master, as well as the puppet master''s puppet.conf. On 14/09/12 02:18, JGonza1 wrote:> this is my init.pp file. > node "ct-eng-pats02-devint" > inherits default { > include patshosts > include users > include patslocalhost > include patsj2ee > include tomcat-prod > include ntp > include webmanager > include webapps > include setjava > include physjava > include weblib > include physbasecat > include patscommsvcpts > include patslinks > include patskey > include webapps > include sharedfiles > include patscache > include setclassfile > include sshkey > } > > On Thursday, September 13, 2012 5:23:50 PM UTC-7, JGonza1 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/-/xcaKUI7GRRAJ. > 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.-- Luke Bigum Senior Systems Engineer Information Systems Ph: +44 (0) 20 3192 2520 luke.bigum@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs are leveraged products that can result in losses exceeding your deposit. They are not suitable for everyone so please ensure you fully understand the risks involved. The information in this email is not directed at residents of the United States of America or any other jurisdiction where trading in CFDs and/or FX is restricted or prohibited by local laws or regulations. The information in this email and any attachment is confidential and is intended only for the named recipient(s). The email may not be disclosed or used by any person other than the addressee, nor may it be copied in any way. If you are not the intended recipient please notify the sender immediately and delete any copies of this message. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. LMAX operates a multilateral trading facility. Authorised and regulated by the Financial Services Authority (firm registration number 509778) and is registered in England and Wales (number 06505809). Our registered address is Yellow Building, 1A Nicholas Road, London, W11 4AN. -- 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.