File tree Expand file tree Collapse file tree 6 files changed +26
-10
lines changed Expand file tree Collapse file tree 6 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 11# ---
22# # NOTE: Requires slurmdbd
33
4- - name : Setup elasticsearch
4+ - name : Setup OpenSearch
55 hosts : opensearch
66 tags : opensearch
77 tasks :
Original file line number Diff line number Diff line change @@ -14,10 +14,17 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
1414Restart=always
1515ExecStart=/usr/bin/podman run \
1616 --network=host \
17- --sdnotify=conmon --cgroups=no-conmon --replace --name filebeat --user root --restart=always --security-opt label=disable \
17+ --sdnotify=conmon \
18+ --cgroups=no-conmon \
19+ --replace \
20+ --name filebeat \
21+ --user root \
22+ --restart=always \
23+ --security-opt label=disable \
1824 --volume /var/log/:/logs:ro \
1925 --volume /etc/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro \
20- --detach=True docker.elastic.co/beats/filebeat-oss:{{ filebeat_version }} -e -strict.perms=false -d "*"
26+ --detach=True docker.elastic.co/beats/filebeat-oss:{{ filebeat_version }} \
27+ --env -strict.perms=false -d "*"
2128ExecStop=/usr/bin/podman stop --ignore filebeat -t 10
2229ExecStopPost=/usr/bin/podman rm --ignore -f filebeat
2330KillMode=none
Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ ExecStartPre=+install -d -o {{ mysql_podman_user }} -g {{ mysql_podman_user }} -
1616ExecStartPre=+chown -R {{ mysql_podman_user }}:{{ mysql_podman_user }} {{ mysql_datadir }}
1717ExecStart=/usr/bin/podman run \
1818 --network=host \
19- --sdnotify=conmon --cgroups=no-conmon \
20- --detach --replace --name mysql --restart=no \
19+ --sdnotify=conmon \
20+ --cgroups=no-conmon \
21+ --detach \
22+ --replace \
23+ --name mysql \
24+ --restart=no \
2125 --user mysql \
2226 --volume {{ mysql_datadir }}:/var/lib/mysql:U \
2327 --publish 3306:3306 \
24- -e MYSQL_ROOT_PASSWORD=${MYSQL_INITIAL_ROOT_PASSWORD} \
28+ --env MYSQL_ROOT_PASSWORD=${MYSQL_INITIAL_ROOT_PASSWORD} \
2529 mysql:{{ mysql_tag }}{% - for opt in mysql_mysqld_options %} \
2630 --{{ opt }}{% endfor %}
2731
Original file line number Diff line number Diff line change 2828 mode : 0770
2929 become : true
3030 loop :
31- - " {{ opensearch_config_path }}/ "
32- - " {{ opensearch_data_path }}/ "
31+ - " {{ opensearch_config_path }}"
32+ - " {{ opensearch_data_path }}"
3333 when : " 'started' in opensearch_state" # don't run during image build
3434
3535- name : Create certs
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ Restart=always
1313# see also https://opensearch.org/docs/2.0/opensearch/install/important-settings/
1414ExecStart=/usr/bin/podman run \
1515 --network=host \
16- --sdnotify=conmon --cgroups=no-conmon -d --replace --name opensearch --restart=no --user opensearch \
16+ --sdnotify=conmon \
17+ --cgroups=no-conmon \
18+ --detach \
19+ --replace \
20+ --name opensearch \
21+ --restart=no --user opensearch \
1722 --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 \
1823 --volume {{ opensearch_data_path }}:/usr/share/opensearch/data:U \
1924 --volume {{ opensearch_config_path }}/internal_users.yml:/usr/share/opensearch/config/opensearch-security/internal_users.yml:U \
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Parses log files and ships them to elasticsearch. Note we use the version shippe
1111Visualisation tool that supports multiple different datasources. In our stack,
1212we use it to visualise prometheus and elasticsearch data.
1313
14- ### [ opensearch] ( https://opendistro.github.io / )
14+ ### [ opensearch] ( https://https://opensearch.org / )
1515
1616A search engine that provides full text search over a collection of JSON documents. In this project,
1717the main use is for the archiving and retrieval of log files.
You can’t perform that action at this time.
0 commit comments