-
Notifications
You must be signed in to change notification settings - Fork 3
/
nfsd.sls
39 lines (39 loc) · 962 Bytes
/
nfsd.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
nfsd_package:
pkg.installed:
- name: nfs-utils
{% for path in '/etc/slurm','/nfs','/var/spool/slurm' %}
nfsd_export_path_{{ path }}:
file.directory:
- name: {{ path }}
{% endfor %}
{% for path in '/var/spool/slurm/ctld','/var/spool/slurm/ckpt' %}
nfsd_export_path_{{ path }}:
file.directory:
- name: {{ path }}
- user: slurm
{% endfor %}
nfsd_export_path_/var/spool/slurm/archive:
file.directory:
- name: /var/spool/slurm/archive
- user: slurm
- mode: '0777'
nfsd_exports:
file.managed:
- name: /etc/exports
- contents: |
/etc/slurm lxrm*(rw,sync,no_subtree_check) lx*(ro,sync,no_subtree_check)
/var/spool/slurm lxrm*(rw,sync)
/nfs lx*(rw)
service.running:
- name: nfs-server.service
- enable: True
- watch:
- file: /etc/exports
nfsd_firewall:
firewalld.present:
- name: public
- services:
- nfs
- mountd
- rpc-bind
- prune_services: False