Skip to content

Commit

Permalink
Fix for bool vs string comparisons in salt templates
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Feb 4, 2015
1 parent 926f46b commit 7790435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/saltbase/salt/kubelet/default
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

{% set cluster_dns = "" %}
{% set cluster_domain = "" %}
{% if pillar['enable_cluster_dns'] is defined and pillar['enable_cluster_dns'] %}
{% if pillar.get('enable_cluster_dns', '').lower() == 'true' %}
{% set cluster_dns = "--cluster_dns=" + pillar['dns_server'] %}
{% set cluster_domain = "--cluster_domain=" + pillar['dns_domain'] %}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions cluster/saltbase/salt/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ base:
- docker
- kubelet
- kube-proxy
{% if pillar['enable_node_monitoring'] is defined and pillar['enable_node_monitoring'] %}
{% if pillar.get('enable_node_monitoring', '').lower() == 'true' %}
- cadvisor
{% endif %}
{% if pillar['enable_node_logging'] is defined and pillar['enable_node_logging'] %}
{% if pillar.get('enable_node_logging', '').lower() == 'true' %}
{% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'elasticsearch' %}
- fluentd-es
{% endif %}
Expand Down

0 comments on commit 7790435

Please sign in to comment.