Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks
but has large files...
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
--- |
|
- name: install lustre client |
|
yum: |
|
name: lustre-client-2.10.5-1.el7.x86_64 |
|
state: present |
|
update_cache: yes |
|
disable_gpg_check: yes |
|
become: true |
|
|
|
- name: make endpoints to mount datahandling storage on. |
|
file: |
|
path: "{{ item }}" |
|
mode: 0777 |
|
state: directory |
|
with_items: |
|
- /home |
|
- /data |
|
- /scratch |
|
|
|
- name: load the lustre kernel module. |
|
modprobe: |
|
name: lustre |
|
state: present |
|
|
|
- name: set lustre.conf |
|
template: |
|
src: templates/lustre.conf |
|
dest: /etc/modprobe.d/lustre.conf |
|
mode: 0644 |
|
owner: root |
|
group: root |
|
backup: no |
|
|
|
- name: Mount /home |
|
mount: |
|
path: /home |
|
src: 172.23.55.211@tcp11:172.23.55.212@tcp11:/home |
|
fstype: lustre |
|
opts: ro,seclabel,lazystatfs |
|
state: present |
|
|
|
- name: Mount /data |
|
mount: |
|
path: /data |
|
src: 172.23.55.211@tcp11:172.23.55.212@tcp11:/data |
|
fstype: lustre |
|
opts: rw,seclabel,lazystatfs |
|
state: present |
|
|
|
- name: Mount /scratch |
|
mount: |
|
path: /scratch |
|
src: 172.23.55.211@tcp11:172.23.55.212@tcp11:/scratch |
|
fstype: lustre |
|
opts: rw,seclabel,lazystatfs |
|
state: present |
|
|
|
- name: mount all mountpoints in fstab |
|
command: mount -a |
|
args: |
|
warn: false
|
|
|