Checking the input value against a newvalues array

We can also validate the provided value of the property with an array of values using the newvalues method, as shown in the following code:

Puppet::Type.newtype(:mynewtype) do
...
newparam(:override) do
defaultto :true
newvalues(:true, :false)
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.216.151.164