Various vagrant fixes, etcd 2.0
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
{% set hostname = grains.host %}
|
||||
DAEMON_ARGS="-peer-addr {{hostname}}:7001 -name {{hostname}}"
|
||||
{% set etcd_servers = "127.0.0.1" -%}
|
||||
{% if grains.etcd_servers is defined -%}
|
||||
{% set etcd_servers = grains.etcd_servers -%}
|
||||
{% endif -%}
|
||||
|
||||
DAEMON_ARGS="-addr {{etcd_servers}}:4001 -bind-addr {{etcd_servers}}:4001 -data-dir /var/etcd"
|
||||
|
@@ -6,6 +6,8 @@ Documentation=https://github.com/coreos/etcd
|
||||
Type=simple
|
||||
EnvironmentFile=/etc/default/etcd
|
||||
ExecStart=/usr/local/bin/etcd $DAEMON_ARGS
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user