This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpillar.example.failover.sls
93 lines (93 loc) · 2.44 KB
/
pillar.example.failover.sls
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# you will need a version for the master and for the slave. The peer addressing must be changed.
#
# Here is the master sample.
# master is set by using "primary: True" in the failover section, 'secondary: True' will configure the slave.
#
#
iscdhcp:
lookup:
config:
dhcpd:
options:
- domain-name "prod.be1-net.local"
- domain-name-servers 8.8.8.8, 8.4.4.4
- fqdn.no-client-update on
- fqdn.rcode2 255
- pxegrub code 150 = text
next_server: 172.16.34.10
filename: pxelinux.0
allow:
- booting
- bootp
omapi_port: 7911
ddns_update_style: interim
ddns_updates: "on"
update_static_leases: "on"
use_host_decl_names: "on"
zones:
- name: prod.be1-net.local.
primary: 8.8.8.8
key: rndc-key
- name: dev.be1-net.local.
primary: 8.8.4.4
key: rndc-key
file_prepend: |
#a
#b
#c
include "/etc/bind/rndc.key";
file_append: "# some code"
listen_interfaces:
- eth0
- eth1
failover:
- peer: management_net
primary: True
address: 172.16.34.10
port: 647
peer_address: 172.16.34.11
peer_port: 647
## these only affect the master
mclt: 3600
split: 100
- peer: storage_net
primary: True
address: 172.16.35.10
port: 647
peer_address: 172.16.35.11
peer_port: 647
## these only affect the master
mclt: 3600
split: 100
hosts:
- name: anyhost
mac: 00:50:56:2f:98:56
ipaddr: 172.16.34.10
domain: foreman.prod.be1-net.local
- name: hisbrother
mac: 00:50:56:2f:98:57
ipaddr: 172.16.34.11
domain: foremansp.prod.be1-net.local
comment: brother of anyhost
additional:
- "#other settings"
- "#here"
subnets:
- network: 172.16.34.0
netmask: 255.255.255.0
pools:
- settings:
- failover peer "management_net"
- range 172.16.34.100 172.16.34.125
- "#Foobar"
- comment: This is a comment
settings:
- range 172.16.34.126 172.16.34.150
additional:
- option routers 172.16.34.1
- network: 172.16.35.0
netmask: 255.255.255.0
pools:
- settings:
- failover peer "store_net"
- range 172.16.35.100 172.16.35.125