aboutsummaryrefslogtreecommitdiff
path: root/personal_infra
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-11-28 21:57:59 +0100
committeralexpdp7 <alex@corcoles.net>2025-11-28 21:59:54 +0100
commitdfaafc49db237eeeb7ef6a60ead5a72bbb368ed6 (patch)
tree383ded6d9eff5ca3ad99db30574d505216e063bc /personal_infra
parent39356046fb11fd6410afcf39c9801d77118562b0 (diff)
Manage NFS
* Moved from old manifests * Make 192.168.76.0 insecure too because running the Kodi flatpak there too
Diffstat (limited to 'personal_infra')
-rw-r--r--personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp b/personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp
index 02072c47..bc1597e2 100644
--- a/personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp
+++ b/personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp
@@ -71,4 +71,31 @@ host-record=router4g.bcn.int.pdp7.net,router4g,192.168.76.3
class {'jellyfin':}
class {'debian::backports':} # basically to get emacs
+
+ package {'nfs-kernel-server':}
+ ->
+ file {"/etc/exports":
+ content => @(EOT)
+ # /etc/exports: the access control list for filesystems which may be exported
+ # to NFS clients. See exports(5).
+ #
+ # Example for NFSv2 and NFSv3:
+ # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
+ #
+ # Example for NFSv4:
+ # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
+ # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
+ #
+
+ # insecure for Kodi
+ /srv/filer 192.168.76.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check,insecure) 10.34.10.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check,insecure)
+ /srv/filer LibreELEC.bcn.int.pdp7.net(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash)
+ | EOT
+ ,
+ }
+ ~>
+ service {"nfs-kernel-server":
+ ensure => running,
+ enable => true,
+ }
}