Displaying 1 result from an estimated 1 matches for "bbcom_file_exist".
Did you mean:
bbcom_file_exists
2011 May 19
2
custom function from .24.6 not working in 2.6 (from squeeze)
...from remote server: Error 400 on SERVER:
private method `gsub'' called for #<Array:0x7fdcebf3bbf8> at
/etc/puppet/manifests/classes/apache-php.pp:72"
Here is the function:
"""
# Checks if a file exists on the puppet maser
Puppet::Parser::Functions::newfunction(:bbcom_file_exists, :type => :rvalue,
:doc => "Checks if the given file exists on the puppet master.") do
|vals|
ret = false
vals.each do |file|
# First convert our $puppet.... urls to local filesystems urls
# We do this to allow the caller to use the same ur...