This template is responsible for configuring the zerotier client on jumpscale. Initializing a service from this templates creates a client with the correct configuration.
token
: the token for the zerotier api.
delete
: delete the client from jumpscale.
To create zerotier_client client
and execute action delete
:
from zerorobot.dsl import ZeroRobotAPI
api = ZeroRobotAPI.ZeroRobotAPI()
robot = api.robots['main']
args = {
'token': 'Ximdhaua',
}
zt = robot.api.services.create('github.com/zero-os/0-boot-templates/zerotier_client/0.0.1', 'client', args)
zt.schedule_action('delete')
To create zerotier_client client
:
services:
- github.com/zero-os/0-boot-templates/zerotier_client/0.0.1__client:
token: 'Ximdhaua'
to delete zerotier_client client
:
actions:
- template: 'github.com/zero-os/0-boot-templates/zerotier_client/0.0.1'
service: 'client'
actions: ['delete']