Skip to content

Commit

Permalink
refine LVS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mergwyn committed Jul 30, 2024
1 parent 343ec33 commit 0e34e16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion site-modules/profile/manifests/app/dhcpd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class profile::app::dhcpd (
Optional[Enum['primary','secondary']] $role = undef,
Optional[Stdlib::IP::Address] $peer_address = undef,
Boolean $use_dns_vip = true,
Boolean $use_dns_vip = false,
) {
$owner = 'dhcpd'
$group = 'dhcpd'
Expand Down
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 { 'VI_DNS':
keepalived::vrrp::instance { 'VIP_DNS':
interface => $lan,
#lvs_interface => 'veth-dns',
state => 'BACKUP',
Expand All @@ -28,7 +28,7 @@
}

# Add virtual server for DNS
keepalived::lvs::virtual_server { 'VPN_DNS':
keepalived::lvs::virtual_server { 'VIP_DNS':
ip_address => $v_ip,
port => 53,
delay_loop => 6,
Expand All @@ -39,8 +39,8 @@
}

$nameservers.each |Integer $index, String $real_ip| {
keepalived::lvs::real_server { "VPN_DNS_${index}":
virtual_server => 'VPN_DNS',
keepalived::lvs::real_server { "VIP_DNS_${index}":
virtual_server => 'VIP_DNS',
ip_address => $real_ip,
port => 53,
options => {
Expand Down

0 comments on commit 0e34e16

Please sign in to comment.