The next technique that we are going to discuss helps you solve conflicts in your manifests and build some elegant solutions in special situations. This mostly refers to configuration files where one is either not able to manage the whole file or where a file is constructed from different subclasses.
Puppet offers several ways to accomplish this:
- Single line
- Single entry in a section
- Building from multiple snippets
- Other resource types
How do you deal with a configuration file, where a user may add additional content? What we have seen so far is management of complete configuration files, where changes will get reset. But think about the users .bashrc file, where the system administrator wants to ensure that the user is making use of a specific proxy.