Cleanup old workaround for ipv6 VIPs
https://bugzilla.redhat.com/show_bug.cgi?id=1445628 has been fixed
in RHEL 7.3. There is no need to carry around this workaround any
longer.
We can entirely remove the nic parameter since it is set to '' by
default anyway in puppet-pacemaker.
Change-Id: Ia41046f148e0593ea773e8409494ce5dcca4b7a2
(cherry picked from commit 2b44f5c319
)
This commit is contained in:
parent
1bc10cb03d
commit
ecf7416a6b
|
@ -70,15 +70,11 @@ define tripleo::pacemaker::haproxy_with_vip(
|
|||
if !is_ip_addresses($ip_address) {
|
||||
fail("Haproxy VIP: ${ip_address} is not a proper IP address.")
|
||||
}
|
||||
# NB: Until the IPaddr2 RA has a fix for https://bugzilla.redhat.com/show_bug.cgi?id=1445628
|
||||
# we need to specify the nic when creating the ipv6 vip.
|
||||
if is_ipv6_address($ip_address) {
|
||||
$netmask = '128'
|
||||
$nic = interface_for_ip($ip_address)
|
||||
$ipv6_addrlabel = '99'
|
||||
} else {
|
||||
$netmask = '32'
|
||||
$nic = ''
|
||||
$ipv6_addrlabel = ''
|
||||
}
|
||||
|
||||
|
@ -91,7 +87,6 @@ define tripleo::pacemaker::haproxy_with_vip(
|
|||
pacemaker::resource::ip { "${vip_name}_vip":
|
||||
ip_address => $ip_address,
|
||||
cidr_netmask => $netmask,
|
||||
nic => $nic,
|
||||
ipv6_addrlabel => $ipv6_addrlabel,
|
||||
meta_params => "resource-stickiness=INFINITY ${meta_params}",
|
||||
location_rule => $location_rule,
|
||||
|
|
Loading…
Reference in New Issue