0

We have an existing puppet setup that is working well. However, on one node, I want to append a line to a configuration file. How do I do that?

The file is currently fully defined in a manifest. The .pp file includes a file { ... } paragraph with a 'content' attribute that is good for all the other hosts. I have a node/name.yaml file for the node on which I want to append one more line to the file. How do I specify that in the .yaml file? Alternatively, how may I override the entire file {...} paragraph in the .yaml file?

  • 1
    Use a template instead. – dawud Jan 18 '17 at 20:36
  • That's what we ended up doing (change to a template) – mpez0 Jan 23 '17 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.