-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.pillar.yaml
65 lines (64 loc) · 1.53 KB
/
example.pillar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
knot:
enabled: true
server:
listen:
- 1.2.3.4
common:
ttl: 3600
key:
- id: transfer_key
secret: secret
algorithm: hmac-sha256
- id: update_key
secret: secret
algorithm: hmac-sha256
- id: notify_key
secret: secret
algorithm: hmac-sha256
acl:
- id: slave1_transfer
key: transfer_key
action: transfer
address: 192.168.2.1
- id: master1_notify
key: notify_key
action: notify
address: 192.168.2.1
- id: updater1_update
key: update_key
action: update
address: 192.168.2.1
remote:
- id: slave1
address: 192.168.2.1
key: transfer_key
- id: master1
address: 192.168.3.1
key: notify_key
- id: updater1
address: 192.168.4.1
key: update_key
zone:
- domain: domain.top
source: "salt://example.zone.jinja"
context:
network:
bridge_ip: 1.2.3.4
notify:
- slave1
acl:
- slave1_transfer
- update1_update
- domain: another.sub.domain
contents: |
$TTL {{ common.ttl }}
@ IN SOA ns.domain.top. postmaster.domain.top. 1 {{ common.refresh }} {{ common.retry }} {{ common.expire }} {{ common.nxdomain }}
@ NS ns.domain.top.
ns A {{ network.bridge_ip }}
{%- for i in range(2,255) %}
res{{ i }} A 10.9.138.{{ i }}
{%- endfor %}
- domain: slave.in.other.domain
master: master1
acl:
- master1_notify