File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 100
100
}
101
101
102
102
# 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 {
104
112
$_tls_config = {
105
113
' xpack.security.http.ssl.enabled' => true ,
106
114
' xpack.security.http.ssl.keystore.path' => $_keystore_path,
110
118
' xpack.security.transport.ssl.keystore.password' => $elasticsearch::keystore_password ,
111
119
}
112
120
}
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
- }
121
121
122
122
# Trust CA Certificate
123
123
java_ks { 'elasticsearch_ca' :
You can’t perform that action at this time.
0 commit comments