From dfaafc49db237eeeb7ef6a60ead5a72bbb368ed6 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 28 Nov 2025 21:57:59 +0100 Subject: Manage NFS * Moved from old manifests * Make 192.168.76.0 insecure too because running the Kodi flatpak there too --- .../puppet/site/dixie.bcn.int.pdp7.net.pp | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'personal_infra') 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, + } } -- cgit v1.2.3