-
Notifications
You must be signed in to change notification settings - Fork 0
/
spdu.conf
138 lines (107 loc) · 4.57 KB
/
spdu.conf
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#! /bin/bash
# Edit this file and place it in /usr/local/etc/
# Binaries
# These are the full paths for the utilities used by sdpu internally
# We use the tools coming with kdns by default (kdig, khost, knsupdate),
# the ones by ISC (dig, host, nsupdate) SHOULD work but have not been tested
# You might want to review the other ones and ensure you have everything
# needed on your machine.
#dig="/usr/local/bin/kdig"
#nsupdate="/usr/local/bin/knsupdate"
#host="/usr/local/bin/khost"
#curl="/usr/local/bin/curl"
#sleep="/bin/sleep"
## DOMAIN
# This is our domain name, no trailing dot, defaults to the
# output of hostname -d, it is used to build the defaults
# for several other parameters
#domain=`hostname -d`
## NAMESERVER
# This is the name or the IP address of our nameserver,
# typically localhost; defaults to 127.0.0.1
#nameServer="127.0.0.1"
# This is the TTL value used to add records in DNS pool,
# default 5
#nameTTL="5"
## EMAIL
# This is the list of email addresses to inform about pool
# changes, SPACE separated, defaults to none
#mailTo=""
# This is the sender address for notification emails,
# defaults to "spdu@${domain}"
#mailFrom="spdu@${domain}"
# This is the smtp authetication user, defaults to $mailFrom,
# used only if you specify a password.
#smtpUser="${mailFrom}"
# This is the smtp authentication password, defaults to nothing,
# if it is empty then NO authentication will take place on SMTP
# (i.e. you are using a local relay accepting emails from your IP)
#smtpPassword=''
# Your SMTP relay, used to send emails, defaults to "smtp.${domain}"
#smtpRelay="smtp.${domain}"
# Wether to use SSL on SMTP, defaults to yes
# smtpSSL="yes"
# Port to use for SMTP, defaults to 443 if smtpSSL=yes, 25 otherwise
# smtpPort="443"
## API
# This is the domain containing the public name for the API,
# defaults to ${domain}, fully qualified but no trailing dot.
#apiDomain="${domain}"
# This is the host name component of the public API, if it does
# not contain dots then .$apiDomain will be appended, defaults
# to "api" (which gets completed by default to api.domain.tld).
#apiName="api"
## PROBE
# This is the path to be probed on the node to check if it is
# alive, anyting returning a "200 OK" will do, actual content
# is ignored; you can also specify parameters here, like
# trysomething?password=bla&value=buh
# Default "status", thus if your service is http://api.domain.tld
# we will fetch http://api.domain.tld/status
# Do not add any leading '/', empty string is ok as long as
# your API returns a 200 for http://api.domain.tld/
#probePath="status"
# Timeout when probing the node, keep this reasonaly short,
# in seconds, decimals allowed as long as your cURL supports
# them, default 2.0
#probeTimeout="2.0"
# As we do not want to take the node off the DNS for short
# and temporary failures the probe will be retied this number
# of times if it fails, default 3, integer.
#probeRetries="3"
# This is the probe loop pause, the service will be checked
# every ${loopWait} seconds at most, note that thi time can be
# much longer, in example if the server is unreachable and the
# IP stack does not report the failure upstream probes will
# actually occur every at least a maximum time of
# $probeRetries*(${probeTimeout}+${loopWait}) seconds, which
# is 12 seconds with all the defaults.
# Should also the DNS be down it can be even more, and
# finally also the processing time gets in.
# Default 2, integer.
#loopWait="2"
# Wether you want to use SSL when probing a node, please note
# that if you do it any SSL failure (includine expired certificates)
# will be considered a node failure and the ndoe will be pulled out
# of the pool, literally "yes" or "no", default "no".
# Note that SSL requests will be on port 443, plain ones on 80
#probeSSL="no"
# Port to probe the service on, defaults to 80 if probeSSL=no
# and to 443 if probeSSL=yes
#probePort="80"
## POOL
# This is the domain containing the pool zone, default ${domain}
#poolDomain="${domain}"
# This is the pool zone, if it does not contain dots then
# ${poolDomain} is appended, defaults to "pool"
#poolZone="pool"
# This is the pool name, if it does not contain dots then
# ${poolZone} is appended, defaults to "api"
#poolName="api"
# If the machine is properly configured the default is then
# that poolName will be "api.pool.domain.tld" and the script
# will add/remove the IP address of the target in the zone
# "pool.domain.tld" for the name "api.pool.domain.tld"
# Note that if you set $poolName to something containing dots
# all the rest will be ignored; the actual poolZone will be
# derived from the final fully qualified $poolName