Skip to content

Commit 2d728f5

Browse files
committed
export state directory to ondemand nodes for caas
1 parent 72aff75 commit 2d728f5

File tree

2 files changed

+14
-2
lines changed
  • ansible/roles/zenith_proxy/tasks
  • environments/.caas/inventory/group_vars/all

2 files changed

+14
-2
lines changed

ansible/roles/zenith_proxy/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
group: "{{ zenith_proxy_podman_user }}"
6262
mode: "0755"
6363
become: true
64+
delegate_to: "{{ groups['control'] | first }}"
65+
run_once: true
6466

6567
- name: Initialise Zenith client
6668
# Use a foreground command rather than the podman_container module as I could not

environments/.caas/inventory/group_vars/all/nfs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ caas_nfs_home:
55
- comment: Export /exports/home from Slurm control node as /home
66
nfs_enable:
77
server: "{{ inventory_hostname in groups['control'] }}"
8-
clients: "{{ inventory_hostname in groups['cluster'] }}"
8+
clients: "{{ inventory_hostname in groups['cluster'] and inventory_hostname not in groups['control'] }}"
99
nfs_export: "/exports/home" # assumes default site TF is being used
1010
nfs_client_mnt_point: "/home"
11+
nfs_export_options: "rw,secure,root_squash"
1112

12-
nfs_configurations: "{{ caas_nfs_home if not cluster_home_manila_share | bool else [] }}"
13+
caas_ood_zenith_state_dir:
14+
- comment: Export /var/lib/state from Slurm control node
15+
nfs_enable:
16+
server: "{{ inventory_hostname in groups['control'] }}"
17+
clients: "{{ inventory_hostname in groups['openondemand'] }}"
18+
nfs_export: "/var/lib/state"
19+
nfs_client_mnt_point: "/var/lib/state"
20+
nfs_export_options: "rw,secure,root_squash"
21+
22+
nfs_configurations: "{{ caas_ood_zenith_state_dir + ( caas_nfs_home if not cluster_home_manila_share | bool else [] ) }}"

0 commit comments

Comments
 (0)