Exclude configuration from puppet central management


In some cases, we need to test a configuration in a server that is managed by Puppet. Besides excluding the server in the manifest file, there are two more ways to do it:

1) Use “chattr +i <file>” to set the file to immunable to prevent even root from changing the file. Use “chattr -i” to remove immunalbe flag.

2) Use “puppet agent –disable” to put a lock in place. puppet agent won’t work until the lock file is removed. Use “puppet agent –enable” to remove the lock.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s