Skip to content

Commit a2418ef

Browse files
committed
support eessi in compute-init
1 parent 14e7dc6 commit a2418ef

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

ansible/roles/compute_init/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ The following roles/groups are currently fully functional:
3939
- `openhpc`: all functionality
4040
- `basic_users`: all functionality, assumes home directory already exists on
4141
shared storage
42+
- `eessi`: all functionality, assumes `cvmfs_config` is the same on control
43+
node and all compute nodes.
4244

4345
# Development/debugging
4446

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
enable_nfs: "{{ os_metadata.meta.enable_nfs | default(false) | bool }}"
1313
enable_manila: "{{ os_metadata.meta.enable_manila | default(false) | bool }}"
1414
enable_basic_users: "{{ os_metadata.meta.enable_basic_users | default(false) | bool }}"
15+
enable_eessi: "{{ os_metadata.meta.enable_eessi | default(false) | bool }}"
1516

1617
# TODO: "= role defaults" - could be moved to a vars_file: on play with similar precedence effects
1718
resolv_conf_nameservers: []
@@ -228,9 +229,21 @@
228229
when: "'sudo' in item"
229230
when: enable_basic_users
230231

231-
# TODO: - name: Configure EESSI
232+
- name: EESSI
233+
block:
234+
- name: Copy cvmfs config
235+
copy:
236+
src: /mnt/cluster/cvmfs/default.local
237+
dest: /etc/cvmfs/default.local
238+
owner: root
239+
group: root
240+
mode: 0644
241+
242+
- name: Ensure CVMFS config is setup
243+
command:
244+
cmd: "cvmfs_config setup"
245+
when: enable_eessi
232246

233-
# TODO: - name: Configure openhpc
234247
# NB: don't need conditional block on enable_compute as have already exited
235248
# if not the case
236249
- name: Write Munge key

ansible/roles/compute_init/tasks/export.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,24 @@
4444
vars:
4545
os_manila_mount_share_info_var:
4646
os_manila_mount_share_info: "{{ os_manila_mount_share_info }}"
47+
48+
- name: Ensure /exports/cluster/cvmfs directory exists
49+
file:
50+
path: /exports/cluster/cvmfs
51+
state: directory
52+
owner: root
53+
group: root
54+
mode: 0755
55+
run_once: true
56+
delegate_to: "{{ groups['control'] | first }}"
57+
58+
- name: Copy EESSI CVMFS config to /exports/cluster
59+
copy:
60+
src: /etc/cvmfs/default.local
61+
dest: /exports/cluster/cvmfs/default.local
62+
owner: root
63+
group: root
64+
mode: 0644
65+
remote_src: true
66+
run_once: true
67+
delegate_to: "{{ groups['control'] | first }}"

0 commit comments

Comments
 (0)