Hetzner NFS VLAN¶
Overview¶
Hetzner NFS VLAN is a Saltbox module that connects 2+ Hetzner servers using NFS and VLAN.
Role Currently Disabled
THIS INFORMATION IS OUTDATED AND DOES NOT WORK AS DOCUMENTED
DO NOT FOLLOW THESE INSTRUCTIONS IF YOU DO NOT KNOW HOW TO ADAPT THEM TO RECENT CHANGES IN BOTH SALTBOX AND HETZNER
Note 1: This comes with no support other than the instructions provided here.
Note 2: This setup has been tested to work with standard Unionfs/Rclone VFS setup. Using either MergerFS or any non-standard setup will require you to tweak the appropriate mounts. You can look at the roles to see what changes need to be done.
1. Installation¶
In this example, we'll set our Feederbox as the NFS server and our Mediabox as the NFS client - this is so that the feeder data can be available to the media server.
There are 3 phases to the setup. They are broken down below.
Hetzner Robot¶
-
Log into Hetzner Robot.
-
Create a VLAN (vSwitch) and add servers to it. Note the VLAN ID.
NFS Server (Feederbox)¶
-
Setup the Ansible role config.
-
Add
vlan_id. -
mount_clientsetting is ignored for the NFS server (i.e. it will just use2).nano /srv/git/saltbox/hetzner_nfs.ymlhetzner_nfs: vlan_id: 4001 mount_client: 3 -
Run Ansible role to configure the NFS server.
sb install hetzner-nfs-server
NFS Client (Mediabox)¶
-
Setup the Ansible role config.
-
Add
vlan_id. -
Add
mount_client.Note:
mount_clientwill need to be either3or a number >250.nano /srv/git/saltbox/hetzner_nfs.ymlhetzner_nfs: vlan_id: 4001 mount_client: 3 -
Run Ansible role to configure the NFS client.
sb install hetzner-nfs-client-mount
Uninstall¶
Simply run the following commands on their respective servers:
Uninstall NFS Server (Feederbox)¶
sb install hetzner-nfs-server-uninstall
Uninstall NFS Client (Mediabox)¶
sb install hetzner-nfs-client-unmount
Role Defaults¶
Variables can be customized using the Inventory. (1)
-
Example override
hetzner_nfs_init_overwrite_client: true
hetzner_nfs_init_overwrite_client
# Type: bool (true/false)
hetzner_nfs_init_overwrite_client: true
hetzner_nfs_init_overwrite_server
# Type: bool (true/false)
hetzner_nfs_init_overwrite_server: true


