Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keepalived/files/default/keepalived.conf.tmpl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
########################################################################

{%- from "keepalived/macro.jinja" import print_config %}
{%- set sections = ['global_defs', 'vrrp_sync_group', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %}
{%- set sections = ['global_defs', 'vrrp_sync_group', 'vrrp_script', 'vrrp_instance', 'virtual_server', 'virtual_server_group'] %}
{%- for section in sections %}
{{ print_config({ section: config[section]|d({}) }) }}
{%- endfor %}
15 changes: 15 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ keepalived:
- 192.168.200.16
- 192.168.200.17
- 192.168.200.18
virtual_server_group:
dns_TCP:
- 10.10.10.53 53
dns_UDP:
- 10.10.10.53 53
virtual_server:
# Virtual and real servers include the port as part of the ID.
192.168.200.100 443:
Expand Down Expand Up @@ -147,6 +152,16 @@ keepalived:
- connect_timeout: 3
- nb_get_retry: 3
- delay_before_retry: 3
group dns_TCP:
protocol: TCP
real_server:
10.10.10.1 53:
weight: 100
group dns_UDP:
protocol: TCP
real_server:
10.10.10.1 53:
weight: 100
vrrp_script:
check_apache:
script: '"killall -0 apache"'
Expand Down