Updated the pillar example.

This commit is contained in:
Jeff Baskin 2016-11-07 22:42:47 -05:00
parent 3f4ab0c27a
commit 8d39c8f99b

View File

@ -2,40 +2,126 @@
# Example pillar configuration # Example pillar configuration
# #
# The following would generate the example file in RedHat based systems.
keepalived: keepalived:
global_defs: global_defs:
notification_emails: notification_email:
- alerts@example.com - acassen@firewall.loc
smtp_server: 'mymail.example.com' - failover@firewall.loc
- sysadmin@firewall.loc
notification_email_from: Alexandre.Cassen@firewall.loc
smtp_server: 192.168.200.1
smtp_connect_timeout: 30 smtp_connect_timeout: 30
router_id: LVS_DEVEL
vrrp_scripts:
chk_haproxy:
script: "killall -0 haproxy"
interval: 2
vrrp_instances: vrrp_instances:
testhaproxy: VI_1:
interface: eth0
priority: 10
virtual_router_id: 01
smtp_alert: True
authentication:
auth_type: PASS
auth_pass: topsecret
virtual_ipaddresses:
- "10.20.30.40"
- "10.20.30.41"
- "10.20.30.42"
track_scripts:
- chk_haproxy
#
# Example Addition Pillar for Master
#
keepalived:
vrrp_instances:
testhaproxy:
state: MASTER state: MASTER
priority: 101 interface: eth0
virtual_router_id: 51
priority: 100
advert_int: 1
authentication:
auth_type: PASS
auth_pass: 1111
virtual_ipaddress:
- 192.168.200.16
- 192.168.200.17
- 192.168.200.18
virtual_server:
# Virtual and real servers include the port as part of the ID.
192.168.200.100 443:
delay_loop: 6
lb_algo: rr
lb_kind: NAT
nat_mask: 255.255.255.0
persistence_timeout: 50
protocol: TCP
real_server:
192.168.201.100 443:
weight: 1
SSL_GET:
# Must be a list because of multiple URL entries.
- url:
path: /
digest: ff20ad2481f97b1754ef3e12ecd3a9cc
- url:
path: /mrtg/
digest: 9b3a0c85a887a256d6939da88aabd8cd
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3
10.10.10.2 1358:
delay_loop: 6
lb_algo: rr
lb_kind: NAT
persistence_timeout: 50
protocol: TCP
sorry_server: 192.168.200.200 1358
real_server:
192.168.200.2 1358:
weight: 1
HTTP_GET:
# Must be a list because of multiple URL entries.
- url:
path: /testurl/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl2/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl3/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3
192.168.200.3 1358:
weight: 1
HTTP_GET:
- url:
path: /testurl/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334c
- url:
path: /testurl2/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334c
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3
10.10.10.3 1358:
delay_loop: 3
lb_algo: rr
lb_kind: NAT
nat_mask: 255.255.255.0
persistence_timeout: 50
protocol: TCP
real_server:
192.168.200.4 1358:
weight: 1
HTTP_GET:
- url:
path: /testurl/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl2/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl3/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3
192.168.200.5 1358:
weight: 1
HTTP_GET:
- url:
path: /testurl/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl2/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- url:
path: /testurl3/test.jsp
digest: 640205b7b0fc66c1ea91c463fac6334d
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3