How to use templates for variable substitution/planting
Noob here. I created my first module that deploys a text file (
/tmp/testmodule.txt) to a managed node, that contains a variable defined at the
node.pp level. Ultimately I plan to package custom SW and use variable substitution with & without facter.
Question is: why do I need to invoke the file resource in the
node.pp file? Why can't I use the module's
init.pp file to do this? I want to be able to do fancier things and create dependencies to that file, but it seems odd that I have to do this in the ... (more)