Run etcd on localhost for all providers.

This commit is contained in:
Abhishek Shah
2015-04-03 14:00:44 -07:00
parent e49424785e
commit fb665ede4c
6 changed files with 4 additions and 25 deletions

View File

@@ -1,9 +1,3 @@
{% if grains.cloud is defined and grains.cloud == 'gce' -%}
{% set etcd_addr = "127.0.0.1" -%}
{% else -%}
{% set etcd_addr = salt['grains.get']('fqdn_ip4')[0] -%}
{% endif -%}
{
"apiVersion": "v1beta3",
"kind": "Pod",
@@ -17,9 +11,9 @@
"command": [
"/usr/local/bin/etcd",
"--addr",
"{{etcd_addr}}:4001",
"127.0.0.1:4001",
"--bind-addr",
"{{etcd_addr}}:4001",
"127.0.0.1:4001",
"--data-dir",
"/var/etcd/data"
],