I'm struggling with a relatively straightforward custom function. All it
is designed to do is check for the existence of a file (on the
puppetmaster). It works fine when I specify the full path to the file, but
I would like to refer to a file in the module's files directory (e.g.
How could I acheive this please? I'd rather not hard-code the full path as
this would be brittle - how can I "resolve" the puppet:/// url to the
actual file location please?
(btw I need the function in order to execute classes/ types conditionally
depending ont he presence of files - it's for a defined type).
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/EuZSnRB_2BQJ.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.