|
|
|
|
@ -138,21 +138,33 @@ PreReq: elasticsearch
|
|
|
|
|
conf="$RPM_INSTALL_PREFIX/etc/elasticsearch/elasticsearch.yml" |
|
|
|
|
if [ -f $conf ]; then |
|
|
|
|
( echo "xpack.security.enabled: true" |
|
|
|
|
echo "" |
|
|
|
|
echo "xpack.security.http.ssl.enabled: false" |
|
|
|
|
echo "xpack.security.http.ssl.verification_mode: certificate" |
|
|
|
|
echo "xpack.security.http.ssl.keystore.path: x-pack/node.p12" |
|
|
|
|
echo "xpack.security.http.ssl.keystore.type: PKCS12" |
|
|
|
|
echo "xpack.security.http.ssl.truststore.path: x-pack/node.p12" |
|
|
|
|
echo "xpack.security.http.ssl.truststore.type: PKCS12" |
|
|
|
|
echo "" |
|
|
|
|
echo "xpack.security.transport.ssl.enabled: false" |
|
|
|
|
echo "xpack.security.transport.ssl.verification_mode: certificate" |
|
|
|
|
echo "xpack.security.transport.ssl.keystore.path: x-pack/node.p12" |
|
|
|
|
echo "xpack.security.transport.ssl.keystore.type: PKCS12" |
|
|
|
|
echo "xpack.security.transport.ssl.truststore.path: x-pack/node.p12" |
|
|
|
|
echo "xpack.security.transport.ssl.truststore.type: PKCS12" |
|
|
|
|
echo "" |
|
|
|
|
echo "xpack.security.authc.realms:" |
|
|
|
|
echo " file:" |
|
|
|
|
echo " type: file" |
|
|
|
|
echo " order: 0" |
|
|
|
|
echo " native:" |
|
|
|
|
echo " type: native" |
|
|
|
|
echo " order: 1" |
|
|
|
|
echo "" |
|
|
|
|
echo "xpack.watcher.enabled: false" |
|
|
|
|
echo "xpack.graph.enabled: false" |
|
|
|
|
echo "xpack.ml.enabled: false" |
|
|
|
|
echo "" |
|
|
|
|
) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \ |
|
|
|
|
-a -i "$RPM_INSTALL_PREFIX:elasticsearch-xpack" -p "#" $conf |
|
|
|
|
su - %{l_rusr} -c \ |
|
|
|
|
|