diff --git a/states/fileserver/init.sls b/states/fileserver/init.sls index 3728d3d..fe7a687 100644 --- a/states/fileserver/init.sls +++ b/states/fileserver/init.sls @@ -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: