Using arrays to assign a list of values to an attribute

When the expected value of an attribute is an array, the array_matching option should be included in the call to newproperty with a value of all. All values of the array are then used for that attribute, as shown in the following code:

Puppet::Type.newtype(:mynewtype) do
...
newproperty(:myarray, :array_matching => :all) do
end
...
end
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.31.159