Hello, all.
Let's say I am building a super-weapon robot to destroy the world, save for
the people on a whitelist, and am using puppet to manage the configuration
of this robot.
$ cat files/do_not_kill.txt
Me
Mom
Dad
Wife
The robot will only being its rampage when /root/have_a_good_time exists. My
puppet configuration, in part, looks like so:
file { '/root/have_a_good_time':
ensure => present,
...
require => File['/root/do_not_kill.txt'],
}
file { '/root/do_not_kill.txt':
ensure => present,
...
source => "puppet:///files/donut_kill.txt",
}
Those with sharp eyes will note that the inclusion of the whitelist will
fail miserably: the source is wrong. But then,
# puppet agent --test
Uh oh. The enabler of the killer robot will be put into place because,
despite the error, execution continued and we're all dead, me especially.
How do I signal that I want to break execution on errors or, at least, not
continue on with the sub-tree of actions which the erroring resource is the
root of?
--
Brian L. Troutwine
--
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.