Skip to content

Commit f49922b

Browse files
committed
Merge branch 'main' into ofed
2 parents 69d0562 + 67e1972 commit f49922b

File tree

10 files changed

+44
-21
lines changed

10 files changed

+44
-21
lines changed

ansible/extras.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@
2626
tasks:
2727
- import_role:
2828
name: cuda
29+
30+
- name: Persist hostkeys across rebuilds
31+
# Must be after filesystems.yml (for storage)
32+
# and before portal.yml (where OOD login node hostkeys are scanned)
33+
hosts: persist_hostkeys:!builder
34+
become: yes
35+
gather_facts: no
36+
tasks:
37+
- import_role:
38+
name: persist_hostkeys

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ After=network-online.target
1212
[Service]
1313
Environment=PODMAN_SYSTEMD_UNIT=%n
1414
Restart=always
15-
ExecStart=/usr/bin/podman --cgroup-manager=cgroupfs run \
15+
ExecStart=/usr/bin/podman run \
1616
--network=host \
1717
--sdnotify=conmon \
1818
--cgroups=no-conmon \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ EnvironmentFile=/etc/sysconfig/mysqld
1414
# The above EnvironmentFile must define MYSQL_INITIAL_ROOT_PASSWORD
1515
ExecStartPre=+install -d -o {{ mysql_podman_user }} -g {{ mysql_podman_user }} -Z container_file_t {{ mysql_datadir }}
1616
ExecStartPre=+chown -R {{ mysql_podman_user }}:{{ mysql_podman_user }} {{ mysql_datadir }}
17-
ExecStart=/usr/bin/podman --cgroup-manager=cgroupfs run \
17+
ExecStart=/usr/bin/podman run \
1818
--network=host \
1919
--sdnotify=conmon \
2020
--cgroups=no-conmon \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
1111
Restart=always
1212
# paths below based on https://opensearch.org/docs/latest/opensearch/configuration/ and https://opensearch.org/docs/latest/security-plugin/configuration/yaml
1313
# see also https://opensearch.org/docs/2.0/opensearch/install/important-settings/
14-
ExecStart=/usr/bin/podman --cgroup-manager=cgroupfs run \
14+
ExecStart=/usr/bin/podman run \
1515
--network=host \
1616
--sdnotify=conmon \
1717
--cgroups=no-conmon \
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# persist_hostkeys
2+
3+
Save hostkeys to persistent storage and restore them after a rebuild/reimage.
4+
5+
Add hosts to the `persist_hostkeys` group to enable.
6+
7+
This role has no variables but hosts in this group must have `appliances_state_dir`
8+
defined as a directory they can write to on persistent storage.

ansible/roles/podman/tasks/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
value: 25000000 # set same as root. Non-root default is 20000
2727
become: true
2828

29+
- name: Configure podman to use cgroupfs as the cgroup manager
30+
community.general.ini_file:
31+
# is actually toml but there's no module for that
32+
create: false # something's unexpected if it doesn't exist now
33+
path: /usr/share/containers/containers.conf
34+
section: engine
35+
option: cgroup_manager
36+
value: '"cgroupfs"'
37+
become: true
38+
2939
- name: reset ssh connection to allow user changes to affect 'current login user'
3040
meta: reset_connection
3141

environments/.caas/hooks/post.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
- name: Persist login hostkey across rebuilds
2-
# Need NFS for this so can't do it before the appliance plays
3-
hosts: login
4-
gather_facts: no
5-
become: yes
6-
roles:
7-
- persist_hostkeys
8-
91
# Configure the Zenith clients that are required
10-
# First, ensure that podman is installed on all hosts that will run Zenith clients
11-
- hosts: zenith,!podman
12-
tasks:
13-
- import_role:
14-
name: podman
15-
tasks_from: prereqs.yml
16-
- import_role:
17-
name: podman
18-
tasks_from: config.yml
19-
2+
# Note zenith hosts are in podman group
203
- hosts: grafana
214
tasks:
225
- name: Deploy the Zenith client for Grafana

environments/.caas/inventory/extra_groups

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ openondemand
1111
[manila:children]
1212
login
1313
compute
14+
15+
[podman:children]
16+
zenith
17+
18+
[persist_hostkeys:children]
19+
openondemand

environments/common/inventory/groups

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ freeipa_client
123123

124124
[proxy]
125125
# Hosts to configure http/s proxies - see ansible/roles/proxy/README.md
126+
127+
[persist_hostkeys]
128+
# Hosts to persist hostkeys for across reimaging. NB: Requires appliances_state_dir on hosts.

environments/common/layouts/everything

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ openhpc
6969

7070
[manila]
7171
# Hosts to configure for manila fileshares
72+
73+
[persist_hostkeys]
74+
# Hosts to persist hostkeys for across reimaging. NB: Requires appliances_state_dir on hosts.

0 commit comments

Comments
 (0)