Bug #9850

Updated by Jacob Helwig over 1 year ago

I'm currently configuring a puppet setup. Puppetmaster and puppet client are both version 2.7.3, and ruby version 2.8.7 patch level 352
I was creating a custom type, and had an element as a parameter. When that parameter had a single element, puppet sent it as a string, rather than as an array.
If I changed it from a parameter to a property, it showed up correctly on the client as an array.

Excerpt from type (nothing special here):

newparam(:allowed_ips, :array_matching => :all) do

defaultto :absent

end

In the provider, it then would be an array only if more than one element was specified in the manifest.
Let me know what other details you need.

Back