File tree Expand file tree Collapse file tree 10 files changed +44
-21
lines changed Expand file tree Collapse file tree 10 files changed +44
-21
lines changed Original file line number Diff line number Diff line change 26
26
tasks :
27
27
- import_role :
28
28
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
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ After=network-online.target
12
12
[Service]
13
13
Environment=PODMAN_SYSTEMD_UNIT=%n
14
14
Restart=always
15
- ExecStart=/usr/bin/podman --cgroup-manager=cgroupfs run \
15
+ ExecStart=/usr/bin/podman run \
16
16
--network=host \
17
17
--sdnotify=conmon \
18
18
--cgroups=no-conmon \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ EnvironmentFile=/etc/sysconfig/mysqld
14
14
# The above EnvironmentFile must define MYSQL_INITIAL_ROOT_PASSWORD
15
15
ExecStartPre=+install -d -o {{ mysql_podman_user }} -g {{ mysql_podman_user }} -Z container_file_t {{ mysql_datadir }}
16
16
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 \
18
18
--network=host \
19
19
--sdnotify=conmon \
20
20
--cgroups=no-conmon \
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
11
11
Restart=always
12
12
# paths below based on https://opensearch.org/docs/latest/opensearch/configuration/ and https://opensearch.org/docs/latest/security-plugin/configuration/yaml
13
13
# 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 \
15
15
--network=host \
16
16
--sdnotify=conmon \
17
17
--cgroups=no-conmon \
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change 26
26
value : 25000000 # set same as root. Non-root default is 20000
27
27
become : true
28
28
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
+
29
39
- name : reset ssh connection to allow user changes to affect 'current login user'
30
40
meta : reset_connection
31
41
Original file line number Diff line number Diff line change 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
-
9
1
# 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
20
3
- hosts : grafana
21
4
tasks :
22
5
- name : Deploy the Zenith client for Grafana
Original file line number Diff line number Diff line change @@ -11,3 +11,9 @@ openondemand
11
11
[manila:children]
12
12
login
13
13
compute
14
+
15
+ [podman:children]
16
+ zenith
17
+
18
+ [persist_hostkeys:children]
19
+ openondemand
Original file line number Diff line number Diff line change @@ -123,3 +123,6 @@ freeipa_client
123
123
124
124
[proxy]
125
125
# 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.
Original file line number Diff line number Diff line change @@ -69,3 +69,6 @@ openhpc
69
69
70
70
[manila]
71
71
# 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.
You can’t perform that action at this time.
0 commit comments