Skip to content

Commit 06b3cc6

Browse files
committed
address PR nits
1 parent 1421276 commit 06b3cc6

File tree

6 files changed

+26
-10
lines changed

6 files changed

+26
-10
lines changed

ansible/monitoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ---
22
# # NOTE: Requires slurmdbd
33

4-
- name: Setup elasticsearch
4+
- name: Setup OpenSearch
55
hosts: opensearch
66
tags: opensearch
77
tasks:

ansible/roles/filebeat/templates/filebeat.service.j2

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
1414
Restart=always
1515
ExecStart=/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 "*"
2128
ExecStop=/usr/bin/podman stop --ignore filebeat -t 10
2229
ExecStopPost=/usr/bin/podman rm --ignore -f filebeat
2330
KillMode=none

ansible/roles/mysql/templates/mysql.service.j2

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ ExecStartPre=+install -d -o {{ mysql_podman_user }} -g {{ mysql_podman_user }} -
1616
ExecStartPre=+chown -R {{ mysql_podman_user }}:{{ mysql_podman_user }} {{ mysql_datadir }}
1717
ExecStart=/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

ansible/roles/opensearch/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
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

ansible/roles/opensearch/templates/opensearch.service.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ Restart=always
1313
# see also https://opensearch.org/docs/2.0/opensearch/install/important-settings/
1414
ExecStart=/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 \

docs/monitoring-and-logging.README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Parses log files and ships them to elasticsearch. Note we use the version shippe
1111
Visualisation tool that supports multiple different datasources. In our stack,
1212
we use it to visualise prometheus and elasticsearch data.
1313

14-
### [opensearch](https://opendistro.github.io/)
14+
### [opensearch](https://https://opensearch.org/)
1515

1616
A search engine that provides full text search over a collection of JSON documents. In this project,
1717
the main use is for the archiving and retrieval of log files.

0 commit comments

Comments
 (0)