Skip to content

Commit 8dc121a

Browse files
authored
Enable lustre in compute-init (#581)
* enable lustre in compute-init * document
1 parent 879f627 commit 8dc121a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

ansible/roles/compute_init/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ it also requires an image build with the role name added to the
7272
| filesystems.yml | block_devices | None required - role deprecated | n/a |
7373
| filesystems.yml | nfs | All client functionality | No |
7474
| filesystems.yml | manila | All functionality | No [5] |
75-
| filesystems.yml | lustre | None at present | Yes |
75+
| filesystems.yml | lustre | All functionality | Yes |
7676
| extras.yml | basic_users | All functionality [6] | No |
7777
| extras.yml | eessi | All functionality [7] | No |
7878
| extras.yml | cuda | None required - use image build | Yes [8] |

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
enable_tuned: "{{ os_metadata.meta.tuned | default(false) | bool }}"
1616
enable_nfs: "{{ os_metadata.meta.nfs | default(false) | bool }}"
1717
enable_manila: "{{ os_metadata.meta.manila | default(false) | bool }}"
18+
enable_lustre: "{{ os_metadata.meta.lustre | default(false) | bool }}"
1819
enable_basic_users: "{{ os_metadata.meta.basic_users | default(false) | bool }}"
1920
enable_eessi: "{{ os_metadata.meta.eessi | default(false) | bool }}"
2021
enable_chrony: "{{ os_metadata.meta.chrony | default(false) | bool }}"
@@ -247,6 +248,12 @@
247248
- enable_manila
248249
- os_manila_mount_shares | length > 0
249250

251+
- name: Configure lustre
252+
ansible.builtin.include_role:
253+
name: lustre
254+
tasks_from: configure.yml
255+
when: enable_lustre
256+
250257
- name: Basic users
251258
block:
252259
- name: Create groups

ansible/roles/compute_init/tasks/install.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
dest: tasks/nfs-clients.yml
4646
- src: ../../mrlesmithjr.chrony
4747
dest: roles/
48+
- src: ../../lustre
49+
dest: roles/
4850

4951
- name: Add filter_plugins to ansible.cfg
5052
lineinfile:

0 commit comments

Comments
 (0)