Enable non_masquerade_cidr option configured in salt.grains

This should allow allow the non_masquerade_cidr option to get configured
in /etc/salt/minion.d/grains.conf, allowing the flag to used by kubelet
in /etc/sysconfig/kubelet. Default configuration is set in pillar
This commit is contained in:
Matt Margolin
2016-03-11 14:38:14 -08:00
committed by Justin Santa Barbara
parent 73017b6de9
commit e752f2149f
2 changed files with 3 additions and 2 deletions

View File

@@ -88,8 +88,8 @@
{% endif -%}
{% set non_masquerade_cidr = "" -%}
{% if grains.non_masquerade_cidr is defined -%}
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + grains.non_masquerade_cidr -%}
{% if pillar.get('non_masquerade_cidr','') is defined -%}
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + pillar.non_masquerade_cidr -%}
{% endif -%}
# The master kubelet cannot wait for the flannel daemon because it is responsible