Skip to content
Snippets Groups Projects
Unverified Commit c8f9617c authored by Imran Iqbal's avatar Imran Iqbal Committed by GitHub
Browse files

Merge pull request #40 from kleinstuff/master

feat(vrrp_sync_group): added option for vrrp_sync_group
parents 61e43447 45e3261e
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
######################################################################## ########################################################################
{%- from "keepalived/macro.jinja" import print_config %} {%- from "keepalived/macro.jinja" import print_config %}
{%- set sections = ['global_defs', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %} {%- set sections = ['global_defs', 'vrrp_sync_group', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %}
{%- for section in sections %} {%- for section in sections %}
{{ print_config({ section: config[section]|d({}) }) }} {{ print_config({ section: config[section]|d({}) }) }}
{%- endfor %} {%- endfor %}
...@@ -27,6 +27,11 @@ keepalived: ...@@ -27,6 +27,11 @@ keepalived:
smtp_server: 192.168.200.1 smtp_server: 192.168.200.1
smtp_connect_timeout: 30 smtp_connect_timeout: 30
router_id: LVS_DEVEL router_id: LVS_DEVEL
vrrp_sync_group:
EXAMPLE_GROUP:
group:
- VI_IPV4
- VI_IPV6
vrrp_instance: vrrp_instance:
VI_1: VI_1:
state: MASTER state: MASTER
......
...@@ -9,5 +9,11 @@ control 'Keepalived configuration' do ...@@ -9,5 +9,11 @@ control 'Keepalived configuration' do
# Custom config from pillar # Custom config from pillar
its('content') { should include 'acassen@firewall.loc' } its('content') { should include 'acassen@firewall.loc' }
# Check config from example pillar -- example vrrp sync group
its('content') { should include 'EXAMPLE_GROUP' }
# Check config from example pillar -- vrrp sync group item
its('content') { should include 'VI_IPV6' }
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment