瀏覽代碼

Merge "Salt minion allow to specify HTTP backend"

pull/56/head
Jakub Pavlik 7 年之前
父節點
當前提交
688495acab
共有 4 個檔案被更改,包括 20 行新增0 行删除
  1. +1
    -0
      .kitchen.yml
  2. +11
    -0
      README.rst
  3. +4
    -0
      salt/files/minion.conf
  4. +4
    -0
      tests/pillar/minion_backend_urllib.sls

+ 1
- 0
.kitchen.yml 查看文件

@@ -85,6 +85,7 @@ suites:
minion_handler.sls: tests/pillar/minion_custom_handler.sls
minion_local_pillar.sls: tests/pillar/minion_local_pillar.sls
minion_local_reclass.sls: tests/pillar/minion_local_reclass.sls
minion_backend_urllib.sls: tests/pillar/minion_backend_urllib.sls

- name: master-default
provisioner:

+ 11
- 0
README.rst 查看文件

@@ -364,6 +364,17 @@ Salt minion behind HTTP proxy
host: 127.0.0.1
port: 3128

Salt minion to specify non-default HTTP backend. The default tornado backend
does not respect HTTP proxy settings set as environment variables. This is
useful for cases where you need to set no_proxy lists.

.. code-block:: yaml

salt:
minion:
backend: urllib2


Salt minion with PKI certificate authority (CA)

.. literalinclude:: tests/pillar/minion_pki_ca.sls

+ 4
- 0
salt/files/minion.conf 查看文件

@@ -70,6 +70,10 @@ proxy_host: {{ minion.proxy.host }}
proxy_port: {{ minion.proxy.port }}
{%- endif %}

{%- if minion.backend is defined %}
backend: {{ minion.backend }}
{%- endif %}

{%- if minion.sentry is defined %}
sentry_handler:
{% for server in minion.sentry.servers %}

+ 4
- 0
tests/pillar/minion_backend_urllib.sls 查看文件

@@ -0,0 +1,4 @@
salt:
minion:
enabled: true
backend: urllib2

Loading…
取消
儲存