Ask Your Question

Puppet Configuration File change from client side

asked 2017-12-20 23:49:27 -0600

When a configuration file is changed from the client side, how do Puppet and Ansible fix that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-12-21 17:27:51 -0600

DarylW gravatar image

What exactly are you asking?

When a configuration file (that is managed by puppet) is changed from the client side(by some action on the system outside of puppet), how do Puppet and Ansible fix that?

I’m not 100% sure on ansible internals, but the puppet client is run as a daemon process, which runs on a periodic, configurable schedule.

The simple answer is that every period (30 min by default), puppet will compare how something ‘should be’ to how it ‘is’, for config files, that can either be a value based on the md5 of a calculated files contents, or if managed with Augeas, it turns the file into a tree structure, and evaluates the lead nodes which you have defined. If puppet detects a difference between the expected file and the actual file, it will replace it with the expected value, unless instructed not to (audit mode)

Is that the question you were asking? Is there a different piece of the puppet lifecycle that you are asking about?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-12-20 23:49:27 -0600

Seen: 152 times

Last updated: Dec 21 '17