I am trying to figure out how to run a Puppet configuration on a newly bootstrapped node, and then, from then onwards, only run as noop in order to collect reports on infrastructure changes / drifts.
So... let's say I have this simple manifest:
node puppeta1, puppeta2 {
file { "/var/tmp/testfile2":
noop => true,
ensure => "present",
owner => "root",
group => "root",
mode => "664",
content => "This is a test file created using puppet.
Puppet is really cool",
}
..
In this case, I only want to have the /var/tmp/testfile2
file created the first time when the puppeta1
and puppeta2
nodes are created. From then onwards, I just want to run it in noop mode to detect whether the file was modified.