-
-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
trevor.viljoen reported this issue on slack
Any idea why the
puppet-networkmodule would inadvertently set boot protocol to dhcp when it was
set to static and the only property we wanted to change with thenetwork_configtype wasmtu? The
resource declaration looks like this:
network_config { "${network_interfaces}":
mtu => 8900,
}The problem is that we use defaults for properties. Defaults are ok for parameters, but not so much for properties. Sometimes a default is needed for resource creation, but this code can go in the provider create method instead.
Worse still are the properties that default to true and use Puppet::Property::Boolean. Puppet::Property::Boolean is completely broken. If you try and set any of those properties to false, nothing will happen.
trevor-viljoen
Metadata
Metadata
Assignees
Labels
No labels