From d11cfdd1bebafbb8fda155c02ffa5a990c542db8 Mon Sep 17 00:00:00 2001 From: jonas Date: Sun, 24 Oct 2021 13:26:33 +0200 Subject: [PATCH] . --- salt/states/nfs-server/init.sls | 23 +++++++++++++++++++++++ salt/states/top.sls | 1 + 2 files changed, 24 insertions(+) create mode 100644 salt/states/nfs-server/init.sls 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