Skip to content

Commit

Permalink
salt: add proxies configuration in pillar
Browse files Browse the repository at this point in the history
Refs: #2052
  • Loading branch information
alexandre-allard committed Dec 16, 2019
1 parent f08eb3c commit 9f2d08e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/_pillar/metalk8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def ext_pillar(minion_id, pillar, bootstrap_config):

result = {
'networks': _load_networks(config),
'metalk8s': metal_data
'metalk8s': metal_data,
'proxies': config.get('proxies', {})
}

if not isinstance(metal_data['archives'], list):
Expand Down
2 changes: 2 additions & 0 deletions salt/metalk8s/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ coredns:
reverse_cidrs: in-addr.arpa ip6.arpa

upgrade: false # define if we're on an upgrade case

proxies: {}
4 changes: 4 additions & 0 deletions salt/metalk8s/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,7 @@
{% set nginx_ingress = salt['grains.filter_by']({
'default': {}
}, merge=defaults.get('nginx-ingress')) %}

{% set proxies = salt['grains.filter_by']({
'default': {}
}, merge=defaults.get('proxies')) %}

0 comments on commit 9f2d08e

Please sign in to comment.