Bläddra i källkod

Update readme and make test pillar for ddns.

pull/79/head
Martin Horak 6 år sedan
förälder
incheckning
5167efd3af
2 ändrade filer med 64 tillägg och 0 borttagningar
  1. +38
    -0
      README.rst
  2. +26
    -0
      tests/pillar/master_dns.sls

+ 38
- 0
README.rst Visa fil

@@ -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 Visa fil

@@ -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

Laddar…
Avbryt
Spara