From c49d9ffc56d0e4ab9df66ef8fa0aac30917cd5ca Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 7 Jan 2021 22:15:14 +0100 Subject: [PATCH] nodes/home.downloadhelper: add node, add storage on home.nas --- nodes/home/downloadhelper.py | 37 ++++++++++++++++++++++++++++++++++++ nodes/home/nas.py | 6 ++++++ 2 files changed, 43 insertions(+) create mode 100644 nodes/home/downloadhelper.py diff --git a/nodes/home/downloadhelper.py b/nodes/home/downloadhelper.py new file mode 100644 index 0000000..68a36e6 --- /dev/null +++ b/nodes/home/downloadhelper.py @@ -0,0 +1,37 @@ +nodes['home.downloadhelper'] = { + 'hostname': '172.19.138.27', + 'bundles': { + 'iptables', + 'nfs-client', + }, + 'groups': { + 'debian-buster', + }, + 'metadata': { + 'interfaces': { + 'enp1s0.8': { + 'dhcp': True, + }, + 'enp1s0.42': { + 'ips': { + '172.19.138.27/24', + }, + }, + }, + 'backups': { + 'exclude_from_backups': True, + }, + 'nfs-client': { + 'mounts': { + 'storage': { + 'mountpoint': '/mnt/nas', + 'serverpath': '172.19.138.20:/storage/download', + 'mount_options': { + 'retry=0', + 'rw', + }, + }, + }, + }, + }, +} diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 1a96165..423371c 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -53,6 +53,9 @@ nodes['home.nas'] = { '/storage/nas': { '172.19.138.0/24(ro,all_squash,anonuid=65534,anongid=65534,no_subtree_check)', }, + '/storage/download': { + '172.19.138.27/32(rw,all_squash,anonuid=65534,anongid=1012,no_subtree_check)', + }, }, }, 'smartd': { @@ -128,6 +131,9 @@ nodes['home.nas'] = { 'storage/f2k1de': { 'mountpoint': '/storage/f2k1de', }, + 'storage/download': { + 'mountpoint': '/storage/download', + }, 'storage/nas': { 'mountpoint': '/storage/nas', },