From 5f18234561f89eb9d4d30492e2ae12bf4d9a47db Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 11 Mar 2022 17:59:46 +0100 Subject: [PATCH] Add nfs CT --- CT-Build/Debian.Jenkinsfile | 2 +- CT-Build/Debian.yaml | 20 ++++++++++++++++++++ CT-Files/nfs/Scripts/Init.sh | 4 ++++ Readme.md | 7 +++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 CT-Files/nfs/Scripts/Init.sh diff --git a/CT-Build/Debian.Jenkinsfile b/CT-Build/Debian.Jenkinsfile index d5febbd..1b6aca7 100644 --- a/CT-Build/Debian.Jenkinsfile +++ b/CT-Build/Debian.Jenkinsfile @@ -1,4 +1,4 @@ -String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' , 'domoticz' , 'omadaV3' , 'docker' , 'smb' , 'tvheadend' , 'x2go' , 'aptcacherng' ] +String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' , 'domoticz' , 'omadaV3' , 'docker' , 'smb' , 'tvheadend' , 'x2go' , 'aptcacherng' , 'nfs' ] pipeline { agent { label 'LXCBuilder' } diff --git a/CT-Build/Debian.yaml b/CT-Build/Debian.yaml index 86848f4..26c4c6b 100644 --- a/CT-Build/Debian.yaml +++ b/CT-Build/Debian.yaml @@ -987,6 +987,13 @@ files: variants: - elkarbackupDEB +#FileForNFS +- path: /opt/Setup + generator: copy + source: CT-Files/nfs + variants: + - nfs + packages: manager: apt update: true @@ -1010,6 +1017,7 @@ packages: - x2go - aptcacherng - elkarbackupDEB + - nfs #Https Repo pkgs - packages: @@ -1028,6 +1036,7 @@ packages: - aptcacherng - mysql - domoticz + - nfs #Minimal pkgs - packages: @@ -1185,6 +1194,7 @@ packages: action: install variants: - smb + - nfs #Samba pkgs - packages: @@ -1265,6 +1275,12 @@ packages: variants: - elkarbackupDEB +#NFS pkgs + - packages: + - nfs-kernel-server + action: install + variants: + - nfs repositories: - name: sources.list @@ -1314,6 +1330,7 @@ packages: deb [signed-by=/usr/share/keyrings/webmin-archive-keyring.gpg arch=amd64] http://download.webmin.com/download/repository sarge contrib variants: - smb + - nfs #WSDD (Web Services Dynamic Discovery) Repo - name: wsdd.list @@ -1395,6 +1412,7 @@ actions: - x2go - aptcacherng - elkarbackupDEB + - nfs - trigger: post-packages action: |- @@ -1416,6 +1434,7 @@ actions: chown -R root:bin /etc/webmin/authentic-theme variants: - smb + - nfs #Jenkins Repo key - trigger: post-unpack @@ -1470,6 +1489,7 @@ actions: curl --retry 7 --retry-delay 5 -L -s http://www.webmin.com/jcameron-key.asc | gpg --dearmor > /usr/share/keyrings/webmin-archive-keyring.gpg variants: - smb + - nfs #Wsdd Repo key - trigger: post-unpack diff --git a/CT-Files/nfs/Scripts/Init.sh b/CT-Files/nfs/Scripts/Init.sh new file mode 100644 index 0000000..350392e --- /dev/null +++ b/CT-Files/nfs/Scripts/Init.sh @@ -0,0 +1,4 @@ +#!/bin/bash +systemctl enable nfs-kernel-server.service +echo "login_message=NFS Server on" >/etc/webmin/authentic-theme/custom-lang +echo "root: backup-config webmin acl init passwd mount fsdump proc cron package-updates software system-status useradmin exports shell filemin status updown" > /etc/webmin/webmin.acl \ No newline at end of file diff --git a/Readme.md b/Readme.md index 28fd2ab..52ee5e4 100644 --- a/Readme.md +++ b/Readme.md @@ -33,6 +33,7 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new | tvheadend | Debian | Tvheadend server | | x2go | Debian | Remote xfce desktop accessable via X2go | | aptcacherng | Debian | Caching server for linux packages | +| nfs | Debian | NFS server | | gitea | Alpine | Gitea server | | nginx | Alpine | Nginx server for reverse-proxy use | | ddns | Alpine | DDNS client configured for OVH/OVH-Cloud | @@ -220,6 +221,12 @@ lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=fi ## aptcacherng * Available on http://``:80 +## nfs +**This container should be set up as privileged** +* Enable feature on CT: 'NFS' +* Webmin available on http://`` +* NFS server Available + ## mailbackup * Info html page available on http://``:80 * Add user/storage space by running `ash /opt/AddMailBox.sh`