Slackbot
04/19/2023, 8:02 PMDr Bunsen Honeydew
04/19/2023, 8:02 PMpuppet-r10k
module at https://forge.puppet.com/puppet/r10k?src=slack&channel=puppetSlackbot
04/19/2023, 8:04 PMMassimiliano (Max)
04/19/2023, 8:59 PMPuppet::Functions.create_function(:'xxx_nomad::array_is_path') do
dispatch :check_paths do
param 'Variant[Array[0, 0], Array[Stdlib::Absolutepath]]', :volume_paths
return_type 'Variant[Array[0, 0], Array[Stdlib::Absolutepath]]'
end
def check_paths(volume_paths)
status_array = []
volume_paths.each do |path|
status_array.push = path unless File.directory?(path) || File.file?(path)
end
status_array
end
end
2. I assign the function to a variable:
$test_paths = Deferred('xxx_nomad::array_is_path', $host_volume_paths)
I'm not getting the value returned by the function, and instead I'm getting the string that I use to call the function
3. I've also tried with raise ArgumentError
which works if I run a server side function, but it doesn't work if I use the deferred
function.Massimiliano (Max)
04/19/2023, 9:26 PMMassimiliano (Max)
04/19/2023, 9:30 PMSlackbot
04/19/2023, 9:57 PMnatemccurdy
04/19/2023, 9:58 PMSlackbot
04/19/2023, 10:00 PMjhoblitt
04/19/2023, 10:03 PMSlackbot
04/19/2023, 10:05 PMSlackbot
04/20/2023, 12:35 AMsmortex
04/20/2023, 1:14 AMpuppetserver ca clean --certname <http://host1.domain.com|host1.domain.com>
smortex
04/20/2023, 1:16 AMNavester
04/20/2023, 7:54 AMNavester
04/20/2023, 7:57 AMbastelfreak
04/20/2023, 7:58 AMNavester
04/20/2023, 8:15 AMbastelfreak
04/20/2023, 8:16 AM$xms
and $xmx
Navester
04/20/2023, 8:24 AMNavester
04/20/2023, 8:24 AMbastelfreak
04/20/2023, 8:25 AMbastelfreak
04/20/2023, 8:26 AM$ramhalf
in line 4 and 5 but that variable isn't present at that timeNavester
04/20/2023, 8:32 AMNavester
04/20/2023, 8:33 AMbastelfreak
04/20/2023, 8:33 AMNavester
04/20/2023, 8:35 AMbastelfreak
04/20/2023, 8:35 AM