Skip to content

Commit

Permalink
Enable lustre in compute-init (#581)
Browse files Browse the repository at this point in the history
* enable lustre in compute-init

* document
  • Loading branch information
bertiethorpe authored Mar 4, 2025
1 parent 879f627 commit 8dc121a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/compute_init/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ it also requires an image build with the role name added to the
| filesystems.yml | block_devices | None required - role deprecated | n/a |
| filesystems.yml | nfs | All client functionality | No |
| filesystems.yml | manila | All functionality | No [5] |
| filesystems.yml | lustre | None at present | Yes |
| filesystems.yml | lustre | All functionality | Yes |
| extras.yml | basic_users | All functionality [6] | No |
| extras.yml | eessi | All functionality [7] | No |
| extras.yml | cuda | None required - use image build | Yes [8] |
Expand Down
7 changes: 7 additions & 0 deletions ansible/roles/compute_init/files/compute-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
enable_tuned: "{{ os_metadata.meta.tuned | default(false) | bool }}"
enable_nfs: "{{ os_metadata.meta.nfs | default(false) | bool }}"
enable_manila: "{{ os_metadata.meta.manila | default(false) | bool }}"
enable_lustre: "{{ os_metadata.meta.lustre | default(false) | bool }}"
enable_basic_users: "{{ os_metadata.meta.basic_users | default(false) | bool }}"
enable_eessi: "{{ os_metadata.meta.eessi | default(false) | bool }}"
enable_chrony: "{{ os_metadata.meta.chrony | default(false) | bool }}"
Expand Down Expand Up @@ -247,6 +248,12 @@
- enable_manila
- os_manila_mount_shares | length > 0

- name: Configure lustre
ansible.builtin.include_role:
name: lustre
tasks_from: configure.yml
when: enable_lustre

- name: Basic users
block:
- name: Create groups
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/compute_init/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
dest: tasks/nfs-clients.yml
- src: ../../mrlesmithjr.chrony
dest: roles/
- src: ../../lustre
dest: roles/

- name: Add filter_plugins to ansible.cfg
lineinfile:
Expand Down

0 comments on commit 8dc121a

Please sign in to comment.