.
This commit is contained in:
parent
6579883226
commit
d11cfdd1be
23
salt/states/nfs-server/init.sls
Normal file
23
salt/states/nfs-server/init.sls
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
Install NFS server packages:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- nfs-kernel-server
|
||||||
|
- yast2-nfs-common
|
||||||
|
- yast2-nfs-server
|
||||||
|
|
||||||
|
Create exports structure:
|
||||||
|
file.recurse:
|
||||||
|
- name: /srv/exports
|
||||||
|
- source: salt://nfs-server/files/exports
|
||||||
|
- user: root
|
||||||
|
- group: users
|
||||||
|
- file_mode: "0600"
|
||||||
|
- include_empty: True
|
||||||
|
- makedirs: True
|
||||||
|
- dir_modes: "0755"
|
||||||
|
|
||||||
|
|
||||||
|
Start nfs-server:
|
||||||
|
service.running:
|
||||||
|
- name: nfsserver
|
||||||
|
- enable: True
|
@ -16,3 +16,4 @@ base:
|
|||||||
- remote-desktop
|
- remote-desktop
|
||||||
- wol
|
- wol
|
||||||
- tlu-harvester
|
- tlu-harvester
|
||||||
|
- nfs-server
|
||||||
|
Loading…
Reference in New Issue
Block a user