Skip to content

Commit

Permalink
Lint, use facts hash
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Sep 13, 2022
1 parent b466d48 commit a57cbc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifests/install/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# PRIVATE CLASS - do not use directly (use main `zookeeper` class).
class zookeeper::install::repo inherits zookeeper::install {
if $zookeeper::repo {
case $facts['os']['family']{
case $facts['os']['family'] {
'RedHat', 'Suse': {
$_config = $zookeeper::repo
validate_hash($_config)
Expand Down
10 changes: 5 additions & 5 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'service_name' => 'zookeeper',
'service_provider' => $initstyle,
'shell' => '/bin/false',
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize'
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize',
}
# 'environment' file probably read just by Debian
# see #16, #81
Expand All @@ -49,7 +49,7 @@
'service_name' => 'zookeeper-server',
'service_provider' => $initstyle,
'shell' => '/sbin/nologin',
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize'
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize',
}
$environment_file = 'java.env'
}
Expand All @@ -66,7 +66,7 @@
'service_name' => 'zookeeper-server',
'service_provider' => $initstyle,
'shell' => '/bin/false',
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize'
'initialize_datastore_bin' => '/usr/bin/zookeeper-server-initialize',
}
$environment_file = 'java.env'
}
Expand Down Expand Up @@ -134,13 +134,13 @@
$ssl_ciphersuites = ''
$ssl_hostname_verification = true
$ssl_clientauth = 'none'
$keystore_location = "/etc/zookeeper/conf/keystores/${::fqdn}.pem"
$keystore_location = "/etc/zookeeper/conf/keystores/${facts['networking']['fqdn']}.pem"
$keystore_type = 'PEM'
$keystore_password = undef
$truststore_location = '/etc/ssl/certs/ca-certificates.crt'
$truststore_type = 'PEM'
$truststore_password = undef
$keystore_quorum_location = "/etc/zookeeper/conf/keystores/${::fqdn}.pem"
$keystore_quorum_location = "/etc/zookeeper/conf/keystores/${facts['networking']['fqdn']}.pem"
$keystore_quorum_type = 'PEM'
$keystore_quorum_password = undef
$truststore_quorum_location = '/etc/ssl/certs/ca-certificates.crt'
Expand Down

0 comments on commit a57cbc2

Please sign in to comment.