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 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,
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' :
You can’t perform that action at this time.
0 commit comments