Include external opensearch role
This commit is contained in:
parent
cff4fc38b3
commit
0e083996e4
5 changed files with 2 additions and 126 deletions
|
@ -1,5 +0,0 @@
|
|||
# {{ ansible_managed }}
|
||||
# Neuinstallation der Plugins
|
||||
|
||||
DPkg::Pre-Invoke {"/usr/local/bin//{{ opensearch_plugin_update_script }} purge";};
|
||||
DPkg::Post-Invoke {"/usr/local/bin//{{ opensearch_plugin_update_script }} install";};
|
|
@ -1,7 +0,0 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
check process {{ opensearch_monit_service }} with pidfile /run/opensearch/opensearch.pid
|
||||
start program = "/usr/sbin/service opensearch start"
|
||||
stop program = "/usr/sbin/service opensearch stop"
|
||||
if failed host {{ opensearch.network_host }} port {{ opensearch.http_port }} for 3 cycles then restart
|
||||
if 5 restarts within 5 cycles then timeout
|
|
@ -1,11 +0,0 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
path.data: /var/lib/opensearch
|
||||
path.logs: /var/log/opensearch
|
||||
|
||||
network.host: {{ opensearch.network_host }}
|
||||
http.port: {{ opensearch.http_port }}
|
||||
discovery.type: single-node
|
||||
|
||||
compatibility.override_main_response_version: true
|
||||
plugins.security.disabled: true
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/sh
|
||||
# {{ ansible_managed }}
|
||||
|
||||
set -eu
|
||||
|
||||
OPENSEARCH_BIN_PATH=/usr/share/opensearch/bin
|
||||
OPENSEARCH_SERVICE=opensearch.service
|
||||
PLUGINS=(
|
||||
ingest-attachment
|
||||
)
|
||||
|
||||
ACTION="${1:-help}"
|
||||
|
||||
case "$ACTION" in
|
||||
purge)
|
||||
for plugin in "${PLUGINS[@]}"; do
|
||||
$OPENSEARCH_BIN_PATH/opensearch-plugin remove $plugin --batch
|
||||
done
|
||||
systemctl restart $OPENSEARCH_SERVICE
|
||||
;;
|
||||
install)
|
||||
for plugin in "${PLUGINS[@]}"; do
|
||||
$OPENSEARCH_BIN_PATH/opensearch-plugin install $plugin --batch
|
||||
done
|
||||
systemctl restart $OPENSEARCH_SERVICE
|
||||
;;
|
||||
help)
|
||||
echo "Syntax: $(basename "$0") { purge | install | help }"
|
||||
echo
|
||||
;;
|
||||
*)
|
||||
"$0" help >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue