瀏覽代碼

Add option to overrided minion id without scrict linux formula dependency

Change-Id: I602338811610d4ff08dfb8b2b3aed9dc46f5b3b0
pull/73/head
Petr Michalec 6 年之前
父節點
當前提交
cfd93e1e91
沒有連結到貢獻者的電子郵件帳戶。
共有 4 個檔案被更改,包括 15 行新增2 行删除
  1. +12
    -0
      README.rst
  2. +1
    -1
      salt/files/master.conf
  3. +1
    -1
      salt/files/minion.conf
  4. +1
    -0
      tests/pillar/minion_multi_master_failover.sls

+ 12
- 0
README.rst 查看文件

@@ -622,6 +622,18 @@ Syndicated master with multiple master of masters
Salt Minion
-----------

Minion ID by default trigger dependency on linux formula, as it uses fqdn configured from `linux.system.name` and
`linux.system.domain` pillar. To override, provide exact minion ID you require. The same can be sate for master id rendered
at `master.conf`.

.. code-block:: yaml

salt:
minion:
id: minion1.production
master:
id: master.production

Simplest Salt minion setup with central configuration node

.. code-block:: yaml

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

@@ -205,7 +205,7 @@ nacl.config:

file_recv: {{ master.get('file_recv', False) }}

id: {{ system.name }}.{{ system.domain }}
id: {{ master.id | default(system.name~"."~system.domain) }}

{#-
vim: syntax=jinja

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

@@ -21,7 +21,7 @@ master: {{ minion.master.host }}

{%- endif %}

id: {{ system.name }}.{{ system.domain }}
id: {{ minion.id | default(system.name~"."~system.domain) }}

{%- for opt in ['max_event_size', 'acceptance_wait_time_max',
'acceptance_wait_time', 'random_reauth_delay', 'recon_default', 'recon_max',

+ 1
- 0
tests/pillar/minion_multi_master_failover.sls 查看文件

@@ -1,5 +1,6 @@
salt:
minion:
id: salt.ci.local
enabled: true
masters:
- host: config01.dc01.domain.com

Loading…
取消
儲存