-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
New Parameters: ssl_timeout / nginx_vhosts_defaults #417
Conversation
Could you name the new SSL parameter |
I chose the name analogue to the existing If you like, I rename the parameter. |
Yeah, some parameters are named directly after the nginx directive, some aren't. But it's less confusing for users if the parameter matches the nginx directive name so it would be good to rename. Thanks |
I agree, pull request updated. So actually, e.g. |
Conflicts: spec/classes/nginx_spec.rb
Merged master for 'automerge'... |
Hi 3flex, Thanks... |
Hi @fnerdwq, my apologies, there is other work going on in PR 423 and I didn't want to add anything that might affect that work. However this is unlikely to affect things so I'm happy to merge. Can I just ask for two things first - please rebase, and have one commit for the new ssl parameter, and a second for the vhost_defaults parameter. Second, if possible, please add a test to that second commit to confirm that the it { is_expected.to contain_nginx__resource__vhost("test2.local").with_listen_options('default_server') } Thanks! |
Added new Parameters:
$ssl_timeout
(nginx: ssl_session_timeout) onnginx::resource::vhost
define$nginx_vhosts_defaults
onnginx
class: This allows to set defaults for all created vhosts through thecreate_resource
function call. This reduces the hiera yaml code immensely, when creating large lists of vhosts.Analogous Parameter to
$nginx_vhosts_defaults
could/should be introduced for...mailhosts
,...locations
, ...