It sounds like he wants to not only assue that foo happens before bar,
but that nothing happens between foo and bar. I think the only way to
ensure that is to use stages, and have a separate stage for the two
items that need to be executed together.

On Dec 8, 1:58 pm, Jacob Helwig <[email protected]> wrote:
> On 2011-12-08 11:07 , Jo Rhett wrote:
>
> > I've found some problems due to the extremely random ordering puppet
> > does.  It is necessary for some of these items to all happen together,
> > with no other random resources executed in between.  Is there some way
> > to arrange this with puppet?
>
> > --
> > Jo Rhett
> > Net Consonance : consonant endings by net philanthropy, open source and
> > other randomness
>
> Have you tried specifying the dependencies between your resources?
>
> package { 'foo':
>   ensure => installed,
>
> }
>
> file { '/etc/foo.conf':
>   ensure => file,
>   source => 'puppet:///module/foo/foo.conf',
>   require => Package['foo'],
>
> }
>
> service { 'foo':
>   ensure => running,
>   subscribe => File['/etc/foo/foo.conf'], Package['foo'],
>
> }
>
> Both subscribe and require will setup ordering between resources.
>
> --
> Jacob Helwighttp://technosorcery.net/about/me
>
>  signature.asc
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to