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