-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Set custom vhost parameters. for example Basic Auth #196
Set custom vhost parameters. for example Basic Auth #196
Conversation
…pache::vhost with $custom_apache_parameters
manifests/apache/vhost.pp
Outdated
@@ -87,7 +87,8 @@ | |||
Optional[String] $ldap_bind_dn = undef, | |||
Optional[String] $ldap_bind_password = undef, | |||
Optional[String] $ldap_url = undef, | |||
Optional[String] $ldap_bind_authoritative = undef | |||
Optional[String] $ldap_bind_authoritative = undef, | |||
Optional[Hash] $custom_apache_parameters = {}, |
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.
Since it has a default, maybe this should just be Hash
?
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.
@ekohl i can change this if you want
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.
@ekohl why using {}
instead of undef ? When using {}
then every optional string would IMHO need ''
instead of undef to be consistent. But then the parameters aren't Optional
anymore because IMHO the empty string or the empty hash is already a value.
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.
@vinzent because it gets used in a * => $custom_apache_parameters
notation - you can't give undef
as an argument to *
so this would cause compilation failure - defaulting to {}
is a lot cleaner than having to wrap things in conditionals... I do agree however that the use of Optional
is not needed
Hi, Best regards, |
Hi @c33s, thanks for the PR! |
currently it is not possible to add custom parameters to the vhost created for puppetboard.
to configure a simple
Auth Basic
the whole vhost has to be created by oneself.with this PR it is possible to pipe all
::apache::vhost parameters
through::puppetboard::apache::vhost
with$custom_apache_parameters