Skip to content

Commit 12d743f

Browse files
authored
Merge pull request #1211 from asusk7m550/master
Use Elasticsearch 7+ as default for configuration
2 parents 167ea14 + 5060816 commit 12d743f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

manifests/config.pp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,15 @@
100100
}
101101

102102
# Set the correct xpack. settings based on ES version
103-
if ($elasticsearch::version != false and versioncmp($elasticsearch::version, '7') >= 0) {
103+
if ($elasticsearch::version != false and versioncmp($elasticsearch::version, '7') < 0) {
104+
$_tls_config = {
105+
'xpack.security.transport.ssl.enabled' => true,
106+
'xpack.security.http.ssl.enabled' => true,
107+
'xpack.ssl.keystore.path' => $_keystore_path,
108+
'xpack.ssl.keystore.password' => $elasticsearch::keystore_password,
109+
}
110+
}
111+
else {
104112
$_tls_config = {
105113
'xpack.security.http.ssl.enabled' => true,
106114
'xpack.security.http.ssl.keystore.path' => $_keystore_path,
@@ -110,14 +118,6 @@
110118
'xpack.security.transport.ssl.keystore.password' => $elasticsearch::keystore_password,
111119
}
112120
}
113-
else {
114-
$_tls_config = {
115-
'xpack.security.transport.ssl.enabled' => true,
116-
'xpack.security.http.ssl.enabled' => true,
117-
'xpack.ssl.keystore.path' => $_keystore_path,
118-
'xpack.ssl.keystore.password' => $elasticsearch::keystore_password,
119-
}
120-
}
121121

122122
# Trust CA Certificate
123123
java_ks { 'elasticsearch_ca':

0 commit comments

Comments
 (0)