Create an array from a file?
So I need to create some file resources based on files that are listed in a conf file (particularly /etc/rsyslog.conf). Using regex, I can get the log files listed in rsyslog.conf into another file, where each line has one log file path listed. I need for puppet to be able to read that file and turn each line into a file resource.
I've tried writing a function, but afterward I read that functions are executed server-side, so not to write it where it needs node-specific information.
Any suggestions are greatly appreciated!