Skip to content

Instantly share code, notes, and snippets.

@Pishoy
Created November 29, 2018 16:30
Show Gist options
  • Save Pishoy/06fa1a58cb6b7296a1e61f2956e1d088 to your computer and use it in GitHub Desktop.
Save Pishoy/06fa1a58cb6b7296a1e61f2956e1d088 to your computer and use it in GitHub Desktop.
args = {
'nics': [{'name': 'ten', 'type': 'zerotier', 'ztClient':'main', 'id': 'a0cbf4b62acb21c7'}],
'farmerIyoOrg': 'kristof-farm',
'nrEtcds': 1,
'publicNodes': ['ac1f6b4571cc'],
'publicIps': ['122.2.1.3']
}
wg = robot.services.create('github.com/threefoldtech/0-templates/web_gateway/0.0.1', 'wg', data=args)
wg.schedule_action('install').wait(die=True)
args = {
'webGateway': 'wg',
'domain': 'test.com',
'servers': []}
rp = robot.services.create('github.com/threefoldtech/0-templates/reverse_proxy/0.0.1', 'rp', data=args)
rp.schedule_action('install').wait(die=True)
s3_redundant.schedule_action('update_reverse_proxy', args={'reverse_proxy': rp.name})
_.wait(die=True)
robot.services.find()
robot.services.get(template_name='etcd_cluster')
etcds =_
etcds.schedule_action('connection_info').wait().result
j.clients.etcd.get('test', data={'host':'192.168.196.91', 'password_':'aj1adnidsms8ph60', 'user':'root'})
cl = _
cl.api.get_all()
list(_)
for r in _: print(r.key)
for r in _: print(r[1].key)
cl.api.get('/traefik/backends/rp/servers/server0/url')
s3_redundant.schedule_action('urls').wait(die=True).result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment