October 2011
Intermediate to advanced
300 pages
5h 51m
English
Sometimes, you want to disable a resource for the time being, so that it doesn't interfere with other work. For example, you might want to tweak a configuration file on the server, until you have the exact settings you want, before checking it into Puppet. You don't want Puppet to overwrite it with an old version in the meantime, so you can set the noop metaparameter on the resource as follows:
noop => true,
file { "/tmp/test.cfg":
content => "Hello, world!\n",
noop => true,
}# puppet agent --test info: Retrieving plugin info: Caching catalog for cookbook.bitfieldconsulting.com info: Applying configuration version '1306159566' notice: /Stage[main]//Node[cookbook]/File[/tmp/test.cfg]/ensure: ...
Read now
Unlock full access