Skip to content

Commit 6c88173

Browse files
authored
Export state directory to OnDemand nodes in CaaS environment (#809)
* export state directory to ondemand nodes for caas * fixed caas config
1 parent 59c3c66 commit 6c88173

File tree

2 files changed

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

2 files changed

+11
-1
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: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ caas_nfs_home:
99
nfs_export: "/exports/home" # assumes default site TF is being used
1010
nfs_client_mnt_point: "/home"
1111

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

0 commit comments

Comments
 (0)