Skip to content

Commit

Permalink
fixes 187 ssl ciphersuites is optional, and removed when not set (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
xepa authored Feb 2, 2023
1 parent e6c854c commit 7b4443b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
$secure_port_only = false
$ssl = false
$ssl_protocol = 'TLSv1.2'
$ssl_ciphersuites = ''
$ssl_ciphersuites = undef
$ssl_hostname_verification = true
$ssl_clientauth = 'none'
$keystore_location = "/etc/zookeeper/conf/keystores/${facts['networking']['fqdn']}.pem"
Expand All @@ -149,7 +149,7 @@
$truststore_quorum_location = '/etc/ssl/certs/ca-certificates.crt'
$truststore_quorum_password = undef
$truststore_quorum_type = 'PEM'
$ssl_quorum_ciphersuites = ''
$ssl_quorum_ciphersuites = undef
$ssl_quorum_hostname_verification = true
$ssl_quorum_protocol = 'TLSv1.2'
$ssl_quorum = false
Expand Down
8 changes: 6 additions & 2 deletions templates/conf/zoo.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ ssl.trustStore.type=<%= scope.lookupvar("zookeeper::truststore_type") %>
<% if scope.lookupvar("zookeeper::truststore_password") %>
ssl.trustStore.password=<%= scope.lookupvar("zookeeper::truststore_password") %>
<% end -%>
<% if scope.lookupvar("zookeeper::ssl_ciphersuites") %>
# Set allowed Ciphers
<% if ! [nil, :undefined, :undef].include?scope.lookupvar("zookeeper::ssl_ciphersuites") %>
ssl.ciphersuites=<%= scope.lookupvar("zookeeper::ssl_ciphersuites") %>
<% else -%>
#ssl.ciphersuites=
<% end -%>

# Server TLS configuration
Expand Down Expand Up @@ -208,9 +210,11 @@ ssl.quorum.trustStore.location=<%= scope.lookupvar("zookeeper::truststore_quorum
ssl.quorum.trustStore.password=<%= scope.lookupvar("zookeeper::truststore_quorum_password") %>
<% end -%>

<% if scope.lookupvar("zookeeper::ssl_quorum_ciphersuites") %>
# Set allowed Ciphers
<% if ! [nil, :undefined, :undef].include?scope.lookupvar("zookeeper::ssl_quorum_ciphersuites") %>
ssl.quorum.ciphersuites=<%=scope.lookupvar("zookeeper::ssl_quorum_ciphersuites") %>
<% else -%>
#ssl.quorum.ciphersuites=
<% end -%>
<% end -%>
Expand Down

0 comments on commit 7b4443b

Please sign in to comment.