I have several machines I am managing via puppet. The machines are at different physical locations. Each location has a specific location number.
I have a config file that needs to have the correct location number in it.
So the contents of /etc/abc.conf are like this:
this=that location=$LOCATION_NUMBER bananas=tasty
When the file gets pushed down to the machine, I need $LOCATION_NUMBER to actually be the location number.
Can I manage this file with puppet and how?
If I export a facter for LOCATION_NUMBER, can puppet write the correct location number when it pushes the file down to the machine?