Allow specifying which host should run ZeroTier

This commit is contained in:
William Miceli
2018-03-14 11:57:31 -04:00
parent ce777aeb05
commit 51d60e7297
2 changed files with 14 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ services:
- -d - -d
devices: devices:
- "/dev/net/tun" - "/dev/net/tun"
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
network_mode: network_mode:
- "host" - "host"
restart: unless-stopped restart: unless-stopped

View File

@@ -17,4 +17,16 @@ catalog:
The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location. The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location.
default: "/var/lib/Storage-Local/zerotier-one" default: "/var/lib/Storage-Local/zerotier-one"
required: false required: false
type: string
- variable: "HOST_LABEL_KEY"
label: "Host Label Key"
description: |
The Label Key on the host which ZeroTier should be deployed
required: true
type: string
- variable: "HOST_LABEL_VALUE"
label: "Host Label Value"
description: |
The Label Value on the host which ZeroTier should be deployed
required: true
type: string type: string