-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use autofs for mounting Jetstream scratch on nodes
- Loading branch information
Showing
7 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
|
||
- name: Remove static mounts | ||
mount: | ||
fstype: nfs4 | ||
name: "{{ item.mountpoint }}" | ||
src: "{{ item.device }}" | ||
state: unmounted | ||
with_items: "{{ jetstream_nfs_filesystems }}" | ||
|
||
- name: Install autofs (yum) | ||
yum: | ||
name: autofs | ||
when: ansible_os_family == "RedHat" | ||
|
||
- name: Add Jetstream mounts to auto.master | ||
copy: | ||
dest: /etc/auto.master.d/auto.ansible_jetstream.autofs | ||
content: "/jetstream /etc/auto.jetstream --ghost\n" | ||
backup: yes | ||
notify: reload autofs | ||
|
||
- name: Create auto.jetstream | ||
template: | ||
src: auto.jetstream.j2 | ||
dest: /etc/auto.jetstream | ||
backup: yes | ||
notify: reload autofs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for fs in jetstream_nfs_filesystems %} | ||
{{ fs.dir }} -fstype=nfs4,rw,nosuid,noatime,rsize=1048576,wsize=1048576,intr,soft,tcp {{ fs.device }} | ||
{% endfor %} |