Hello, i started yesterday to setting up a puppet server and im really excited about what puppet can do for me. I had first a file authorized_keys that I use to copy with puppet to all my servers, than i discovered a function that can handle my keys. When I try to pull the new config i get the following error: err: Could not retrieve configuration: Could not find definition ssh_authorized_key at /etc/puppet/manifests/classes/authorized_keys.pp: 8 this is my class: class ssh_keys { ssh_authorized_key{ "me": ensure => present, key => "xyxyxy", name => "me@company.yyy", target => "/root/.ssh/authorized_keys", } } what am I doing wrong here? greetings Rupertt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> what am I doing wrong here?which version are your running? greets pete --~--~---------~--~----~------------~-------~--~----~ 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 Aug 27, 2:03 pm, Peter Meier <peter.me...@immerda.ch> wrote:> Hi > > > what am I doing wrong here? > > which version are your running? >0.22.4 says yum we are using CentOS5.2, and the packages from their repository. greetings Rupertt> greets pete--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You''re using a version of puppet that doesn''t have this type. Upgrade. Regards, AJ On 27/08/2008, at 11:59 PM, Rupert <Rupertt@gmail.com> wrote:> > Hello, > i started yesterday to setting up a puppet server and im really > excited about what puppet can do for me. > I had first a file authorized_keys that I use to copy with puppet to > all my servers, than i discovered a function that can handle my keys. > When I try to pull the new config i get the following error: > > err: Could not retrieve configuration: Could not find definition > ssh_authorized_key at /etc/puppet/manifests/classes/ > authorized_keys.pp: > 8 > > this is my class: > > class ssh_keys { > > ssh_authorized_key{ "me": > ensure => present, > key => "xyxyxy", > name => "me@company.yyy", > target => "/root/.ssh/authorized_keys", > } > } > > what am I doing wrong here? > > greetings > > Rupertt > > >--~--~---------~--~----~------------~-------~--~----~ 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 Aug 27, 2:37 pm, AJ <a...@junglist.gen.nz> wrote:> You''re using a version of puppet that doesn''t have this type. > > Upgrade. >I did that by using the dlutter repo. now i get the following error on the client: Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server puppet: getaddrinfo: Name or service not known Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ Node[configfiles]/File[/etc/bashrc] (err): Failed to retrieve current state of resource: Could not find server puppet Could not describe / files/etc/bashrc: Could not find server puppet at /etc/puppet/ manifests/classes/configfiles.pp:26 Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server puppet: getaddrinfo: Name or service not known Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ Node[configfiles]/File[/etc/sysconfig/puppet] (err): Failed to retrieve current state of resource: Could not find server puppet Could not describe /files/etc/sysconfig/puppet: Could not find server puppet at /etc/puppet/manifests/classes/configfiles.pp:95 Wed Aug 27 12:55:12 +0000 2008 Puppet (notice): Finished catalog run in 0.30 seconds the server seems to start fine: Wed Aug 27 12:27:22 +0000 2008 Puppet (notice): Starting Puppet server version 0.24.5 i had a notice when I first started the new puppet that it did some case corretctions on my certificates, my hostnames have some uppercase letters. has the syntax changed? here is an example from one class #sysconfig file { "/etc/sysconfig/clock": source => "puppet:///files/etc/sysconfig/clock", owner => "root", group => "root", mode => "644"; } greetings Rupertt> Regards, > > AJ > > On 27/08/2008, at 11:59 PM, Rupert <Rupe...@gmail.com> wrote: > > > > > Hello, > > i started yesterday to setting up a puppet server and im really > > excited about what puppet can do for me. > > I had first a file authorized_keys that I use to copy with puppet to > > all my servers, than i discovered a function that can handle my keys. > > When I try to pull the new config i get the following error: > > > err: Could not retrieve configuration: Could not find definition > > ssh_authorized_key at /etc/puppet/manifests/classes/ > > authorized_keys.pp: > > 8 > > > this is my class: > > > class ssh_keys { > > > ssh_authorized_key{ "me": > > ensure => present, > > key => "xyxyxy", > > name => "m...@company.yyy", > > target => "/root/.ssh/authorized_keys", > > } > > } > > > what am I doing wrong here? > > > greetings > > > Rupertt > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> 0.22.4 says yumas AJ said, this version is heavily out of date.> we are using CentOS5.2, and the packages from their repository.better use dlutter''s repo for facter and puppet. greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You can also use EPEL which is the closest thing to an ''offical'' unoffical package repo for Centos/RHEL. (EPEL-Testing has 0.24.5, EPEL has 0.24.4) On Wed, Aug 27, 2008 at 9:39 AM, Peter Meier <peter.meier@immerda.ch> wrote:> > Hi > >> 0.22.4 says yum > > as AJ said, this version is heavily out of date. > >> we are using CentOS5.2, and the packages from their repository. > > better use dlutter''s repo for facter and puppet. > > greets pete > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 Aug 27, 3:32 pm, Rupert <Rupe...@gmail.com> wrote:> On Aug 27, 2:37 pm, AJ <a...@junglist.gen.nz> wrote:> You''re using a version of puppet that doesn''t have this type. > > > Upgrade. > > I did that by using the dlutter repo. > now i get the following error on the client: > > Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server > puppet: getaddrinfo: Name or service not known > Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ > Node[configfiles]/File[/etc/bashrc] (err): Failed to retrieve current > state of resource: Could not find server puppet Could not describe / > files/etc/bashrc: Could not find server puppet at /etc/puppet/ > manifests/classes/configfiles.pp:26 > Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server > puppet: getaddrinfo: Name or service not known > Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ > Node[configfiles]/File[/etc/sysconfig/puppet] (err): Failed to > retrieve current state of resource: Could not find server puppet Could > not describe /files/etc/sysconfig/puppet: Could not find server puppet > at /etc/puppet/manifests/classes/configfiles.pp:95 > Wed Aug 27 12:55:12 +0000 2008 Puppet (notice): Finished catalog run > in 0.30 seconds > > the server seems to start fine: > > Wed Aug 27 12:27:22 +0000 2008 Puppet (notice): Starting Puppet server > version 0.24.5 > > i had a notice when I first started the new puppet that it did some > case corretctions on my certificates, my hostnames have some uppercase > letters. > > has the syntax changed? > here is an example from one class > #sysconfig > file { > "/etc/sysconfig/clock": > source => "puppet:///files/etc/sysconfig/clock", > owner => "root", > group => "root", > mode => "644"; > } > > greetings > > Rupertt > > > Regards, > > > AJ > > > On 27/08/2008, at 11:59 PM, Rupert <Rupe...@gmail.com> wrote: > > > > Hello, > > > i started yesterday to setting up a puppet server and im really > > > excited about what puppet can do for me. > > > I had first a file authorized_keys that I use to copy with puppet to > > > all my servers, than i discovered a function that can handle my keys. > > > When I try to pull the new config i get the following error: > > > > err: Could not retrieve configuration: Could not find definition > > > ssh_authorized_key at /etc/puppet/manifests/classes/ > > > authorized_keys.pp: > > > 8 > > > > this is my class: > > > > class ssh_keys { > > > > ssh_authorized_key{ "me": > > > ensure => present, > > > key => "xyxyxy", > > > name => "m...@company.yyy", > > > target => "/root/.ssh/authorized_keys", > > > } > > > } > > > > what am I doing wrong here? >after some testing and changing all the hostnames to lowercase I can manually do "puppetd --server noc-vm1.xyxy.vvmvmv --waitforcert 60 --test" so my authorized_keys get populated, but i cant do "/etc/init.d/puppet once -v" anymore, is this because the rpm is meant for slightly different system, would this be the same with the EPEL package, and will the daemon still run like it should?> > > greetings >again> > > Rupertt > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Try making sure you have an entry for ''puppet'' in DNS or /etc/hosts. On Wed, Aug 27, 2008 at 10:17 AM, Rupert <Rupertt@gmail.com> wrote:> > > > On Aug 27, 3:32 pm, Rupert <Rupe...@gmail.com> wrote: >> On Aug 27, 2:37 pm, AJ <a...@junglist.gen.nz> wrote:> You''re using a version of puppet that doesn''t have this type. >> >> > Upgrade. >> >> I did that by using the dlutter repo. >> now i get the following error on the client: >> >> Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server >> puppet: getaddrinfo: Name or service not known >> Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ >> Node[configfiles]/File[/etc/bashrc] (err): Failed to retrieve current >> state of resource: Could not find server puppet Could not describe / >> files/etc/bashrc: Could not find server puppet at /etc/puppet/ >> manifests/classes/configfiles.pp:26 >> Wed Aug 27 12:55:12 +0000 2008 Puppet (err): Could not find server >> puppet: getaddrinfo: Name or service not known >> Wed Aug 27 12:55:12 +0000 2008 /Main[top]/Node[default]/ >> Node[configfiles]/File[/etc/sysconfig/puppet] (err): Failed to >> retrieve current state of resource: Could not find server puppet Could >> not describe /files/etc/sysconfig/puppet: Could not find server puppet >> at /etc/puppet/manifests/classes/configfiles.pp:95 >> Wed Aug 27 12:55:12 +0000 2008 Puppet (notice): Finished catalog run >> in 0.30 seconds >> >> the server seems to start fine: >> >> Wed Aug 27 12:27:22 +0000 2008 Puppet (notice): Starting Puppet server >> version 0.24.5 >> >> i had a notice when I first started the new puppet that it did some >> case corretctions on my certificates, my hostnames have some uppercase >> letters. >> >> has the syntax changed? >> here is an example from one class >> #sysconfig >> file { >> "/etc/sysconfig/clock": >> source => "puppet:///files/etc/sysconfig/clock", >> owner => "root", >> group => "root", >> mode => "644"; >> } >> >> greetings >> >> Rupertt >> >> > Regards, >> >> > AJ >> >> > On 27/08/2008, at 11:59 PM, Rupert <Rupe...@gmail.com> wrote: >> >> > > Hello, >> > > i started yesterday to setting up a puppet server and im really >> > > excited about what puppet can do for me. >> > > I had first a file authorized_keys that I use to copy with puppet to >> > > all my servers, than i discovered a function that can handle my keys. >> > > When I try to pull the new config i get the following error: >> >> > > err: Could not retrieve configuration: Could not find definition >> > > ssh_authorized_key at /etc/puppet/manifests/classes/ >> > > authorized_keys.pp: >> > > 8 >> >> > > this is my class: >> >> > > class ssh_keys { >> >> > > ssh_authorized_key{ "me": >> > > ensure => present, >> > > key => "xyxyxy", >> > > name => "m...@company.yyy", >> > > target => "/root/.ssh/authorized_keys", >> > > } >> > > } >> >> > > what am I doing wrong here? >> > after some testing and changing all the hostnames to lowercase I can > manually do > "puppetd --server noc-vm1.xyxy.vvmvmv --waitforcert 60 --test" > so my authorized_keys get populated, but i cant do "/etc/init.d/puppet > once -v" anymore, > is this because the rpm is meant for slightly different system, would > this be the same with the EPEL package, > and will the daemon still run like it should? > > > >> > > greetings >> > again >> > > Rupertt >> >> > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeroen van Meeuwen (GMail)
2008-Aug-28 12:53 UTC
[Puppet Users] Re: ssh_authorized_key not working?
Rupert wrote:> > > On Aug 27, 2:03 pm, Peter Meier <peter.me...@immerda.ch> wrote: >> Hi >> >>> what am I doing wrong here? >> which version are your running? >> > 0.22.4 says yum > > we are using CentOS5.2, and the packages from their repository. >EPEL from Fedora has a more recent version, you might want to look at starting to use that: http://fedoraproject.org/wiki/EPEL Kind regards, Jeroen van Meeuwen -kanarip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
In what version was this resource type introduced? I''m running 0.24.4 bur are getting "Could not find resouce type ssh_autorized_key..." On 8/27/08, AJ <aj@junglist.gen.nz> wrote:> > > You''re using a version of puppet that doesn''t have this type. > > Upgrade. > > Regards, > > AJ > > On 27/08/2008, at 11:59 PM, Rupert <Rupertt@gmail.com> wrote: > > > > > Hello, > > i started yesterday to setting up a puppet server and im really > > excited about what puppet can do for me. > > I had first a file authorized_keys that I use to copy with puppet to > > all my servers, than i discovered a function that can handle my keys. > > When I try to pull the new config i get the following error: > > > > err: Could not retrieve configuration: Could not find definition > > ssh_authorized_key at /etc/puppet/manifests/classes/ > > authorized_keys.pp: > > 8 > > > > this is my class: > > > > class ssh_keys { > > > > ssh_authorized_key{ "me": > > ensure => present, > > key => "xyxyxy", > > name => "me@company.yyy", > > target => "/root/.ssh/authorized_keys", > > } > > } > > > > what am I doing wrong here? > > > > greetings > > > > Rupertt > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Francois Deppierraz
2008-Sep-11 08:39 UTC
[Puppet Users] Re: ssh_authorized_key not working?
Kenneth Holter wrote:> In what version was this resource type introduced? I''m running 0.24.4 > bur are getting "Could not find resouce type ssh_autorized_key..."It got introduced in 0.24.5 but you can also install it on previous versions using the pluginsync mechanism. François --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---