forked from arnisoph/saltstack-keepalived-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example.sls
63 lines (62 loc) · 1.77 KB
/
pillar.example.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
{# Master Host (high prio) #}
keepalived:
configs:
01_global_defs:
sections:
- comment: Global settings
type: global_defs
settings:
notification_email:
notification_email_from: root@{{ salt['grains.get']('fqdn') }}
smtp_server: 127.0.0.1
smtp_connect_timeout: 30
router_id: id_TBD_TODO
02_virtual_instances:
sections:
- comment: HTTP Software Repositories
name: VI_1
type: vrrp_instance
settings:
state: BACKUP
smtp_alert: ''
interface: eth0
virtual_router_id: 51
priority: 100
advert_int: 1
authentication:
auth_type: PASS
auth_pass: foobar
virtual_ipaddress:
- 10.1.0.26 dev eth0
{# Backup Host (low prio) #}
keepalived:
configs:
01_global_defs:
sections:
- comment: Global settings
type: global_defs
settings:
notification_email:
notification_email_from: root@{{ salt['grains.get']('fqdn') }}
smtp_server: 127.0.0.1
smtp_connect_timeout: 30
router_id: id_TBD_TODO
02_virtual_instances:
sections:
- comment: HTTP Software Repositories
name: VI_1
type: vrrp_instance
settings:
state: BACKUP
smtp_alert: ''
interface: eth0
virtual_router_id: 51
priority: 20
advert_int: 1
authentication:
auth_type: PASS
auth_pass: foobar
virtual_ipaddress:
- 10.1.0.26 dev eth0