Hi!! I was using puppet 0.24.8 and I have recently upgraded to version 0.25.1. (I am using puppet + passenger configuration) I have noticed that when I have to requires in a manifest, the following error is raised: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate parameter ''require'' here is an example (extracted from http://projects.reductivelabs.com/issues/2736): ssh_authorized_key { "authkeypuppet": user => "puppet", key => "AAAAA", type => ssh-rsa, name => "web@noc", ensure => present, require => User["puppet"], require => File["/var/lib/puppet/.ssh"], target => "/var/lib/puppet/.ssh/authorized_keys2" } am I missing something? This kind of definition was working... Thanks in advance, Gus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello, ----- "Gustavo Soares" <gustavosoares@gmail.com> wrote:> Hi!! > > I was using puppet 0.24.8 and I have recently upgraded to version > 0.25.1. (I am using puppet + passenger configuration) > > I have noticed that when I have to requires in a manifest, the > following error is raised: > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Duplicate parameter ''require''<snip>> require => User["puppet"], > require => File["/var/lib/puppet/.ssh"], > target => "/var/lib/puppet/.ssh/authorized_keys2"<snip>> am I missing something? This kind of definition was working...Actually it wasn''t working at all. What would happen in the past is that only the 2nd require would be taken, the first would be silently ignored and not do what you intended at all. The parser now help you pick up this kind of mistake, the right syntax is: require => [ User["puppet"], File["/var/lib/puppet/.ssh"] ] -- R.I.Pienaar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
all right! that explains everything! I''ve tried to find any example like yours (require => [ User["puppet"], File["/var/lib/puppet/.ssh"] ]) on the wiki, but I hadn''t found. thank you!! On Wed, Nov 4, 2009 at 4:01 PM, R.I.Pienaar <rip@devco.net> wrote:> > Hello, > > ----- "Gustavo Soares" <gustavosoares@gmail.com> wrote: > > > Hi!! > > > > I was using puppet 0.24.8 and I have recently upgraded to version > > 0.25.1. (I am using puppet + passenger configuration) > > > > I have noticed that when I have to requires in a manifest, the > > following error is raised: > > > > err: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Duplicate parameter ''require'' > > <snip> > > > require => User["puppet"], > > require => File["/var/lib/puppet/.ssh"], > > target => "/var/lib/puppet/.ssh/authorized_keys2" > > <snip> > > > am I missing something? This kind of definition was working... > > > Actually it wasn''t working at all. What would happen in the past is that > only the 2nd require would be taken, the first would be silently ignored and > not do what you intended at all. > > The parser now help you pick up this kind of mistake, the right syntax is: > > require => [ User["puppet"], File["/var/lib/puppet/.ssh"] ] > > -- > R.I.Pienaar > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---