-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve datatypes #219
Improve datatypes #219
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly correct. Dns search domains is probably the only thing that needs to be changed.
manifests/init.pp
Outdated
Stdlib::Port $ldap_port = 389, | ||
String[1] $ldap_server = 'localhost', | ||
String[1] $ldap_username = 'cn=root, dc=example, dc=com', | ||
String[0] $ldap_password = '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default is an empty string and I didn't want to change it. Personally I wuld perfer undef. Do you want me to change it? That would be a breaking change (next release already is a major one, so we could include it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant why not leave it as String
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes. doesn't make a difference
manifests/init.pp
Outdated
Array[Stdlib::Fqdn] $dnssearchdomains = [], | ||
String[1] $dhcp_conf_header = 'INTERNAL_TEMPLATE', | ||
String[1] $dhcp_conf_ddns = 'INTERNAL_TEMPLATE', | ||
String[1] $dhcp_conf_ntp = 'INTERNAL_TEMPLATE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are empty strings definitely not allowed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allowed empty string again
Enum['allow', 'deny'] $ddns_client_updates = 'allow', | ||
Optional[Stdlib::IP::Address] $pxeserver = undef, | ||
Optional[String[1]] $pxefilename = undef, | ||
Optional[Integer[1]] $mtu = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An MTU of 1
is no more valid than 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure which is the lowest positive number that makes sense, I just wanted to prohibit negative numbers.
1be5691
to
44b810e
Compare
Pull Request (PR) description
This Pull Request (PR) fixes the following issues