소스 검색

Update readme and make test pillar for ddns.

pull/79/head
Martin Horak 6 년 전
부모
커밋
5167efd3af
2개의 변경된 파일64개의 추가작업 그리고 0개의 파일을 삭제
  1. +38
    -0
      README.rst
  2. +26
    -0
      tests/pillar/master_dns.sls

+ 38
- 0
README.rst 파일 보기

@@ -727,6 +727,44 @@ Syndicated master with multiple master of masters:
- host: master-of-master-host2
timeout: 5

Dynamic DNS configuration
-------------------------

Salt master can register minions in DNS server using DDNS (dynamic DNS)
update mechanism via salt.runners.ddns module. DNS server with dynamic
updates allowed is required. Authorization via {tsig-key} is available.
Recommended is DNS server configured via salt-formula-bind.
Mechanism uses event-reactor system.

Master pillar:

.. code-block:: yaml
salt:
master:
ddns:
enabled: True
keys:
key: <tsig-key>
name: <tsig-key-name>
reactor:
dns/node/register:
- salt://salt/reactor/node_ddns_register.sls

Minion pillar:

.. code-block:: yaml
salt:
minion:
ddns:
server: <dns-server-ip>
keyname: <tsig-key-name>
ttl: 300

Minions can be registered in DNS calling:

.. code-block:: bash
salt '*' state.apply salt.minion.dns_register

Salt Minion
-----------


+ 26
- 0
tests/pillar/master_dns.sls 파일 보기

@@ -0,0 +1,26 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
command_timeout: 5
worker_threads: 2
reactor_worker_threads: 2
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
ddns:
enabled: True
keys:
key: 'yEdG9/x8Sb+efi27GyeXNg=='
name: salt-updates
reactor:
dns/node/register:
- salt://salt/reactor/node_ddns_register.sls

Loading…
취소
저장