Make fileserver setup deterministic

Create the home directories before trying to bind mount them to /srv/nfs4
subdirectories. Remove unneeded acl parameter that lead to rewrites of
/etc/fstab for every salt run.
This commit is contained in:
Jan Dittberner 2016-09-25 13:50:53 +02:00
parent 91ed2ae12c
commit 231976d1dc

View file

@ -7,6 +7,15 @@ base-dirs:
- group: root
- mode: 0755
home-dirs:
file.directory:
- names:
- /home/mail
- /home/www
- user: root
- group: root
- mode: 0751
nfs4-dirs:
file.directory:
- names:
@ -15,6 +24,8 @@ nfs4-dirs:
- user: root
- group: root
- mode: 0751
- require:
- file: /srv/nfs4
/srv/nfs4/web:
mount.mounted:
@ -22,10 +33,10 @@ nfs4-dirs:
- fstype: none
- opts:
- bind
- acl
- persist: True
- require:
- file: nfs4-dirs
- file: /home/www
/srv/nfs4/mail:
mount.mounted:
@ -33,10 +44,10 @@ nfs4-dirs:
- fstype: none
- opts:
- bind
- acl
- persist: True
- require:
- file: nfs4-dirs
- file: /home/mail
/srv/sftp/home:
file.directory:
@ -48,10 +59,10 @@ nfs4-dirs:
- fstype: none
- opts:
- bind
- acl
- persist: True
- require:
- file: /srv/sftp/home
- file: /home/mail
fileserver-packages:
pkg.installed: