Hi,

Puppet doesn't run in any specific order unless you tell it to.

Look at http://docs.puppetlabs.com/learning/ordering.html for the learning 
series.

Basically you can use 'require' declarations to get order:
file {'/tmp/thing':
  require => File['/tmp/that']
  ...
}

This says, the 'thing' file needs 'that' file to be done first.

HTH
Den

> On 10 Feb 2014, at 19:19, Muhammad Yousuf Khan <[email protected]> wrote:
> 
> i am being through a exercise on docs.puppetlabs.com
> and i am confuse with the notification output. as it shows last message first 
> and first message at last.
> i just need to know why the output notifications are random 
> 
> here is my .pp file.
> 
> @puppet:/etc/puppetlabs/puppet# cat  text.pp
> 
> file {'/tmp/test1':
>       ensure  => file,
>       content => "Hi.\n",
>     }
> notify {"this is 1":}
> 
>    file {'/tmp/test2':
>       ensure => directory,
>       mode   => 0644,
>     }
> 
>     file {'/tmp/test3':
>       ensure => link,
>       target => '/tmp/test1',
>     }
> 
>     file {'/tmp/test2/insidedir':
>       ensure => file,
>       content => 'infor put by me',
>     }
> 
>     user {'katie':
>       ensure => absent,
>     }
> 
> notify {"I'm notifying you.":}
> notify {"this is 2":}
> notify {"So am I!":}
> notify {"this is 3":}
> 
> ---------------------------------------
> here is the output
> 
> Notice: Compiled catalog for puppet.mycompany.com in environment production 
> in 0.55 seconds
> Notice: this is 2
> Notice: /Stage[main]//Notify[this is 2]/message: defined 'message' as 'this 
> is 2'
> Notice: this is 3
> Notice: /Stage[main]//Notify[this is 3]/message: defined 'message' as 'this 
> is 3'
> Notice: So am I!
> Notice: /Stage[main]//Notify[So am I!]/message: defined 'message' as 'So am 
> I!'
> Notice: I'm notifying you.
> Notice: /Stage[main]//Notify[I'm notifying you.]/message: defined 'message' 
> as 'I'm notifying you.'
> Notice: this is 1
> Notice: /Stage[main]//Notify[this is 1]/message: defined 'message' as 'this 
> is 1'
> Notice: Finished catalog run in 0.49 seconds
> 
> 
> so the question is why the notification outputs are so random. 
> 
> Thanks, 
> 
> MYK
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/CAGWVfMmp6tN_qHd1bRmrqp%2BoMi7QXARqDZf6KEWxnpGGLqUShQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/BB71E785-889D-48E5-B4DB-8AF1BC48AF7A%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to