March 2017
Beginner to intermediate
925 pages
18h 11m
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:
noop => true,
This example shows you how to use the noop metaparameter:
site.pp file as follows:node 'cookbook' {
file { '/etc/resolv.conf':
content => "nameserver 127.0.0.1\n",
noop => true,
}
}[root@cookbook ~]# puppet agent -t Info: Caching catalog for cookbook.example.com Info: Applying configuration ...
Read now
Unlock full access