f6f6e55b33
This provides a number of cleanups as the code has been unloved for a while. I've added the ssl-* parameters the robinbowes added in his last patch to the docs, and found some other cleanups as well where applicable. I've added the ability to override the test_url also, so that in the future if a user wishes to they can customize this. Signed-off-by: Ken Barber <ken@bob.sh>
15 lines
402 B
Ruby
15 lines
402 B
Ruby
module Puppet::Parser::Functions
|
|
newfunction(:puppetdb_create_subsetting_resource_hash, :type => :rvalue) do |args|
|
|
java_args = args[0]
|
|
params = args[1]
|
|
resource_hash = {}
|
|
|
|
java_args.each { |k,v|
|
|
item_params = { 'subsetting' => k, 'value' => (v || '') }
|
|
item_params.merge!(params)
|
|
resource_hash.merge!({ "'#{k}'" => item_params })
|
|
}
|
|
|
|
resource_hash
|
|
end
|
|
end
|