Setting property and parameter defaults

Let's say we wanted to add an additional override parameter, which we wanted to configure with a default value of false. Here's the Ruby code to express that:

Puppet::Type.newtype(:mynewtype) do
...
newparam(:override) do
defaultto :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
3.144.104.29