瀏覽代碼

proxy_minion fix

Change-Id: Ie6cf0a8361524b594b60119b25f6d336b6797ece
meta
Jiri Broulik 7 年之前
父節點
當前提交
5ebdfcebfd
共有 3 個檔案被更改,包括 5 行新增5 行删除
  1. +1
    -1
      salt/files/proxy.conf
  2. +1
    -1
      salt/minion/init.sls
  3. +3
    -3
      salt/minion/proxy.sls

+ 1
- 1
salt/files/proxy.conf 查看文件

@@ -3,6 +3,6 @@
# This configuration file is used to manage the behavior of all Salt Proxy
# Minions on this host.

master: {{ proxy.master|default('localhost') }}
master: {{ proxy_minion.master|default('localhost') }}
multiprocessing: False
mine_enabled: True

+ 1
- 1
salt/minion/init.sls 查看文件

@@ -8,6 +8,6 @@ include:
- salt.minion.ca
{%- endif %}
- salt.minion.cert
{%- if pillar.salt.minion.proxy is defined %}
{%- if pillar.salt.minion.proxy_minion is defined %}
- salt.minion.proxy
{%- endif %}

+ 3
- 3
salt/minion/proxy.sls 查看文件

@@ -23,17 +23,17 @@
- template: jinja
- defaults:
napalm: {{ napalm }}
proxy: {{ proxy|yaml }}
proxy_minion: {{ proxy_minion|yaml }}

{%- if napalm %}

network_proxy_packages:
pkg.installed:
- names: {{ proxy.napalm_pkgs }}
- names: {{ proxy_minion.napalm_pkgs }}

napalm:
pip.installed:
- name: {{ proxy.napalm_pip_pkgs}}
- name: {{ proxy_minion.napalm_pip_pkgs}}
- require:
- pkg: python-pip


Loading…
取消
儲存