Hello, I use some define in classes like class foo { define bar() {} } before in .22.4 i had require => Bar[''mybar''] on object and it worked. Now i have : err: Could not apply complete configuration: Could not retrieve dependency ''Shorewall-realize[shorewall.conf]'' at /etc/puppet/manifests/classes/shorewall.pp: for exemple. Do anyone knwo why it fails now as i do not see what in the changelog could have this effect ? -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 2, 2007, at 9:33 AM, ADNET Ghislain wrote:> Hello, > > I use some define in classes like > > class foo { > > define bar() {} > } > > before in .22.4 i had require => Bar[''mybar''] on object and it > worked. Now i have : > > err: Could not apply complete configuration: Could not retrieve > dependency ''Shorewall-realize[shorewall.conf]'' at /etc/puppet/ > manifests/classes/shorewall.pp: > > for exemple. Do anyone knwo why it fails now as i do not see what > in the changelog could have this effect ?Can you post a specific example with the errors it returns? Your example and error seem unrelated. -- There are three kinds of death in this world. There''s heart death, there''s brain death, and there''s being off the network. -- Guy Almes --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
> Can you post a specific example with the errors it returns? Your > example and error seem unrelated. > > -- > There are three kinds of death in this world. There''s heart death, > there''s brain death, and there''s being off the network. -- Guy Almes >this comes from the shorewall recipe: http://reductivelabs.com/trac/puppet/wiki/AqueosShorewall when you do: class shorewall { # creation de la configuration a partir des fichiers contenant les regles define shorewall-realize { exec { "shorewall-sort-$name": refreshonly => true, command => "cat /etc/shorewall/puppet/$name/* >| /etc/shorewall/$name", notify => Service[''shorewall''] } } shorewall-realize { [''rules'',''zones'',''interfaces'',''routestopped'',''policy'',''hosts'',''shorewall.conf'']: } ............ } later doing a define shorewall-routestopped($host=''detect'',$interface=''eth0'',$options=''''){ file { "/etc/shorewall/puppet/routestopped/$name": content => "$interface $host $options\n", require => File[''/etc/shorewall/puppet/routestopped''], owner => root, mode => 600, line 208 => notify => Shorewall-realize[''routestopped''] } } throw the error: notice: Starting configuration run err: Could not apply complete configuration: Could not retrieve dependency ''Shorewall-realize[routestopped]'' at /etc/puppet/manifests/classes/shorewall.pp:208 info: Sent transaction report in 0.17 seconds notice: Finished configuration run in 0.76 seconds on 0.22.4 it was working . Does it sound clearer ? :) -- Cordialement, Ghislain ADNET. AQUEOS. Attention ! Toute demande de support ou commande de domaine par email sera refusée, pour cela utilisez https://support.aqueos.net. Pour tout contact nos coordonnées : http://www.aqueos.com/aqueos-services-informatiques-societe.php Fax: 01.72.70.32.66 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 3, 2007, at 1:37 AM, ADNET Ghislain wrote:> this comes from the shorewall recipe: > > http://reductivelabs.com/trac/puppet/wiki/AqueosShorewall > > when you do: > > class shorewall { > > # creation de la configuration a partir des fichiers > contenant les regles > define shorewall-realize { > exec { "shorewall-sort-$name": > refreshonly => true, > command => "cat /etc/shorewall/puppet/$name/* >| /etc/ > shorewall/$name", > notify => Service[''shorewall''] > } > } > > shorewall-realize > { [''rules'',''zones'',''interfaces'',''routestopped'',''policy'',''hosts'',''shore > wall.conf'']: } > > ............ > > } > > > later doing a > define shorewall-routestopped($host=''detect'', > $interface=''eth0'',$options=''''){ > file { "/etc/shorewall/puppet/routestopped/$name": > content => "$interface $host > $options\n", > require => File[''/etc/shorewall/puppet/ > routestopped''], > owner => root, > mode => 600, > line 208 => notify => > Shorewall-realize[''routestopped''] > } > } > > > throw the error: > > notice: Starting configuration run > err: Could not apply complete configuration: Could not retrieve > dependency ''Shorewall-realize[routestopped]'' at /etc/puppet/ > manifests/classes/shorewall.pp:208 > info: Sent transaction report in 0.17 seconds > notice: Finished configuration run in 0.76 seconds > > > on 0.22.4 it was working . Does it sound clearer ? :)Yeah, I see now. I don''t think I changed anything here... Can you file this as a bug and I''ll get to it this week? -- To have a right to do a thing is not at all the same as to be right in doing it. -- G. K. Chesterton --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com