Created
February 23, 2015 23:49
-
-
Save kelseyhightower/d437ed8a165eb2c2cba6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: etcd.service | |
command: start | |
content: | | |
[Unit] | |
Description=etcd | |
[Service] | |
User=etcd | |
PermissionsStartOnly=true | |
ExecStartPre=/usr/bin/wget -N -P /opt/bin http://192.168.0.1:8080/etcd | |
ExecStartPre=/usr/bin/wget -N -P /opt/bin http://192.168.0.1:8080/etcdctl | |
ExecStartPre=/usr/bin/chmod +x /opt/bin/etcd | |
ExecStartPre=/usr/bin/chmod +x /opt/bin/etcdctl | |
Environment=ETCD_NAME=etcd0 | |
Environment=ETCD_DATA_DIR=/var/lib/etcd | |
Environment=ETCD_ADVERTISE_CLIENT_URLS=http://192.168.12.50:2379 | |
Environment=ETCD_LISTEN_CLIENT_URLS=http://192.168.12.50:2379 | |
Environment=ETCD_INITIAL_ADVERTISE_PEER_URLS=http://192.168.12.50:2380 | |
Environment=ETCD_LISTEN_PEER_URLS=http://192.168.12.50:2380 | |
Environment=ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-1 | |
Environment=ETCD_INITIAL_CLUSTER=etcd0=http://192.168.12.50:2380,etcd1=http://192.168.12.51:2380,etcd2=http://192.168.12.52:2380 | |
Environment=ETCD_INITIAL_CLUSTER_STATE=new | |
ExecStart=/opt/bin/etcd | |
Restart=always | |
RestartSec=10s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment