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 5
/
Copy pathpillar.example.sls
89 lines (88 loc) · 2.38 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
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
{# 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
unicast_peer:
- 10.1.0.27
03_vrrp_scripts:
sections:
- comment: Check status
name: check
type: vrrp_script
settings:
script: service httpd status
interval: 10
weight: 2
fall: 2
rise: 2
{# 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
unicast_peer:
- 10.1.0.28
03_vrrp_scripts:
sections:
- comment: Check status
name: check
type: vrrp_script
settings:
script: service httpd status
interval: 10
weight: 2
fall: 2
rise: 2