diff --git a/salt/states/nfs-server/init.sls b/salt/states/nfs-server/init.sls new file mode 100644 index 0000000..a84ff0b --- /dev/null +++ b/salt/states/nfs-server/init.sls @@ -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 diff --git a/salt/states/top.sls b/salt/states/top.sls index 1fef4a0..24762ea 100644 --- a/salt/states/top.sls +++ b/salt/states/top.sls @@ -16,3 +16,4 @@ base: - remote-desktop - wol - tlu-harvester + - nfs-server