Skip to content
Snippets Groups Projects
Commit 7d8b6fa4 authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

Conditional event changed from interface_variable to vip_variable; lvs_interface variable removed

parent 5c804247
No related branches found
No related tags found
1 merge request!23Dev
......@@ -8,10 +8,9 @@ class iaas::profile::keepalived (
$smtp_server = undef,
$state = undef,
$priority = undef,
$lvs_interface = hiera('iaas::profile::keepalived::lvs_interface',undef),
) {
if $admin_interface == undef {
if $vip_admin_address == undef {
$virtual_ipaddress = [{ 'ip'=>"${vip_main_address}", 'dev'=>"${public_interface}" }]
} else {
$virtual_ipaddress = [
......@@ -47,7 +46,6 @@ include keepalived
auth_type => 'PASS',
auth_pass => '1111',
virtual_ipaddress => $virtual_ipaddress,
lvs_interface => $lvs_interface,
track_script => 'chk_haproxy',
} ->
......@@ -55,4 +53,4 @@ include keepalived
service_restart => 'service keepalived reload', # When using SysV Init
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment