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