Merge "Update run_tests.sh to the latest revision"
diff --git a/etcd/meta/prometheus.yml b/etcd/meta/prometheus.yml
index cdc8de5..1fa8643 100644
--- a/etcd/meta/prometheus.yml
+++ b/etcd/meta/prometheus.yml
@@ -3,6 +3,16 @@
target:
static:
etcd:
+ enabled: true
+ {%- if server.get('ssl', {}).get('enabled') %}
+ scheme: https
+ tls_config:
+ skip_verify: true
+ cert_name: prometheus-server.crt
+ key_name: prometheus-server.key
+ {%- else %}
+ scheme: http
+ {%- endif %}
endpoint:
{%- set hostname = grains.get('nodename') %}
{%- for member in server.members %}
diff --git a/etcd/server/service.sls b/etcd/server/service.sls
index 2f73141..240b293 100644
--- a/etcd/server/service.sls
+++ b/etcd/server/service.sls
@@ -131,7 +131,7 @@
- source: salt://etcd/files/default
- template: jinja
- defaults:
-{%- if salt['cmd.run']('. /var/lib/etcd/configenv; etcdctl cluster-health > /dev/null 2>&1; echo $?') != '0' %}
+{%- if salt['cmd.shell']('. /var/lib/etcd/configenv; etcdctl cluster-health > /dev/null 2>&1; echo $?') != '0' %}
initial_cluster_state: new
{%- else %}
initial_cluster_state: existing