Puppet: Conditional file source based on naming convention
- by thinice
I'm getting the ball rolling on puppet for my environment - and I'd like to have a conditional file resource based on whether or not the module itself contains a file based on a naming convention.
So visually, assume a module named 'mysql' and it's layout:
mysql/
/files
/etc/
my.cnf
my.hostname1.cnf
…