diff options
Diffstat (limited to 'bundles/nfs')
| -rw-r--r-- | bundles/nfs/files/exports | 1 | ||||
| -rw-r--r-- | bundles/nfs/files/fstab | 1 | ||||
| -rw-r--r-- | bundles/nfs/files/public.avahi.service | 20 | ||||
| -rw-r--r-- | bundles/nfs/items.py | 3 |
4 files changed, 25 insertions, 0 deletions
diff --git a/bundles/nfs/files/exports b/bundles/nfs/files/exports index faa7da1..8cb0369 100644 --- a/bundles/nfs/files/exports +++ b/bundles/nfs/files/exports @@ -3,3 +3,4 @@ /var/nfs/home-robert *(rw,sync,insecure,all_squash,no_subtree_check,hide) /var/nfs/media *(rw,sync,insecure,no_root_squash,no_subtree_check,nohide) /var/nfs/public *(ro,sync,insecure,all_squash,no_subtree_check,hide) +/var/nfs/syncthing *(ro,sync,insecure,all_squash,no_subtree_check,hide) diff --git a/bundles/nfs/files/fstab b/bundles/nfs/files/fstab index 0da4f54..dd80b27 100644 --- a/bundles/nfs/files/fstab +++ b/bundles/nfs/files/fstab @@ -15,3 +15,4 @@ UUID=5699-A10B /media/usb exfat defaults,uid=1000,gid=1000 0 0 # nfs shares /media/hayasui/media /var/nfs/media none rbind 0 0 /media/bigdump /var/nfs/bigdump none rbind 0 0 +/var/lib/syncthing /var/nfs/syncthing none rbind 0 0 diff --git a/bundles/nfs/files/public.avahi.service b/bundles/nfs/files/public.avahi.service new file mode 100644 index 0000000..c1d0cc3 --- /dev/null +++ b/bundles/nfs/files/public.avahi.service @@ -0,0 +1,20 @@ +<?xml version="1.0" standalone='no'?><!--*-nxml-*--> +<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> + +<service-group> + + <name replace-wildcards="yes">Public NFS share on %h</name> + + <service> + <type>_device-info._tcp</type> + <port>0</port> + <txt-record>model=Xserve</txt-record> + </service> + + <service> + <type>_nfs._tcp</type> + <port>2049</port> + <txt-record>path=/var/nfs/public</txt-record> + </service> + +</service-group> diff --git a/bundles/nfs/items.py b/bundles/nfs/items.py index 369dad6..b15111c 100644 --- a/bundles/nfs/items.py +++ b/bundles/nfs/items.py @@ -33,6 +33,9 @@ files = { # "source": "nfs.nft", # "triggers": {"svc_openrc:nftables:restart"}, # } + "/etc/avahi/services/nfs-public.service": { + "source": "public.avahi.service", + }, } # TODO: |