Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not sure if this helps as we use a git + puppet version (ppg) that runs masterless but the following works for me. I'm not sure if this would work on traditional puppet master setup. Maybe someone else can test the code and comment.

$file_foo_exists = inline_template("<% if File.exist?('/path/to/local/file/foo') -%>true<% end -%>")