Skip to content

Commit

Permalink
Revert virtual_server
Browse files Browse the repository at this point in the history
  • Loading branch information
mergwyn committed Jul 30, 2024
1 parent bafd86e commit 538afbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site-modules/profile/manifests/app/keepalived/dns.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# }

# VRRP
keepalived::vrrp::instance { 'VIP_DNS':
keepalived::vrrp::instance { 'VI_50':
interface => $lan,
#lvs_interface => 'veth-dns',
state => 'BACKUP',
Expand All @@ -33,18 +33,18 @@
port => 53,
delay_loop => 6,
ha_suspend => true,
lb_algo => 'wlc',
lb_algo => 'wrr',
lb_kind => 'DR',
protocol => 'TCP'
}

$nameservers.each |Integer $index, String $real_ip| {
keepalived::lvs::real_server { "VIP_DNS_${index}":
#virtual_server => 'VIP_DNS',
virtual_server => 'VIP_DNS',
ip_address => $real_ip,
port => 53,
options => {
weight => 1,
weight => $index,
notify_down => "'/sbin/ipvsadm -d -u ${v_ip}:53 -r ${real_ip}:53'",
notify_up => "'/sbin/ipvsadm -a -u ${v_ip}:53 -r ${real_ip}:53 -g -w 1'",
'TCP_CHECK' => {
Expand Down

0 comments on commit 538afbd

Please sign in to comment.