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 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
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ After=network-online.target
1212[Service]
1313Environment=PODMAN_SYSTEMD_UNIT=%n
1414Restart=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 \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ EnvironmentFile=/etc/sysconfig/mysqld
1414# The above EnvironmentFile must define MYSQL_INITIAL_ROOT_PASSWORD
1515ExecStartPre=+install -d -o {{ mysql_podman_user }} -g {{ mysql_podman_user }} -Z container_file_t {{ mysql_datadir }}
1616ExecStartPre=+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 \
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
1111Restart=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 \
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 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
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-
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
Original file line number Diff line number Diff line change @@ -11,3 +11,9 @@ openondemand
1111[manila:children]
1212login
1313compute
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
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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments