Skip to content

Instantly share code, notes, and snippets.

@rimusz
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save rimusz/cb904968b68444315be2 to your computer and use it in GitHub Desktop.

Select an option

Save rimusz/cb904968b68444315be2 to your computer and use it in GitHub Desktop.
workers
fleet:
etcd_servers: "http://10.20.30.10:4001"
metadata: "role=worker,cpeer=tsld-test1"
units:
- name: etcd.service
mask: true
- name: fleet.service
command: start
write_files:
- path: /etc/profile.d/etcdctl.sh
permissions: 0644
owner: core
content: |
# configure etcdctl to work with our etcd servers set above
export ETCDCTL_PEERS="http://10.20.30.10:4001"
- path: /etc/profile.d/fleetctl.sh
permissions: 0644
owner: core
content: |
# configure fleetctl to work with our etcd servers set above
export FLEETCTL_ENDPOINT=/var/run/fleet.sock
export FLEETCTL_EXPERIMENTAL_API=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment