I''m guessing i''ve hit the parallel features of puppet, but just checking to see if there is a way to execute the array in element order? The rpms i''m installing are dependent on each other I''m doing - $ganglia = $architecture ? { "i386" => [ "libconfuse-2.5-3.i386.rpm", "libganglia-3_1_0-3.1.1-1.i386.rpm", "ganglia-gmond-3.1.1-1.i386.rpm" ] } ganglia::rpms { $ganglia : } define ganglia::rpms () { package {"${name}": ensure => present, provider => rpm, require => Package["apr"], source => "http://$repo/ganglia/${name}" } } But it can fail on first puppet poll due to it installing gmond rpm before libconfuse rpm. I guess I need to specify each rpm in it''s own package {} and use the before/require syntax? Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ 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> I''m guessing i''ve hit the parallel features of puppet, but just > checking to see if there is a way to execute the array in element > order?for this use the metaparameters like require and before.> The rpms i''m installing are dependent on each other > > I''m doing - > > $ganglia = $architecture ? { > "i386" => [ "libconfuse-2.5-3.i386.rpm", > "libganglia-3_1_0-3.1.1-1.i386.rpm", "ganglia-gmond-3.1.1-1.i386.rpm" > ] }there is no way that puppet guaranties that the array is executed in that order. puppet builds up a dependency graph and will execute that in the correct order. however it will never guarantee that something without any dependencies is executed in a certain order.> ganglia::rpms { $ganglia : } > > define ganglia::rpms () { > package {"${name}": ensure => present, > provider => rpm, > require => Package["apr"], > source => "http://$repo/ganglia/${name}" > } > } > > But it can fail on first puppet poll due to it installing gmond rpm > before libconfuse rpm. > > I guess I need to specify each rpm in it''s own package {} and use the > before/require syntax?exactly. 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 -~----------~----~----~----~------~----~------~--~---