[netconfig] APT: Prefer ipv4 connections over ipv6 33/49733/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 28 Dec 2017 14:32:43 +0000 (15:32 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 29 Dec 2017 12:51:00 +0000 (12:51 +0000)
commit4d604967adde375eb24ae165aff83c11be89ca30
treec1e6a6c8ae2462818b2a9231567342cf01967108
parent22fbf083c762c56efcf6ba40e6e4cc5643da3e4e
[netconfig] APT: Prefer ipv4 connections over ipv6

Ubuntu prefers ipv6 connections therefore in some networks, this
breaks software updates (it does a AAAA DNS lookup before A record
lookups). Let's prefer old style ipv4 connections over the new ipv6 in
order to save some processing and resource utilization.

Based on previous work from [1] (but without /etc/gai.conf, only APT).

[1] https://review.openstack.org/#/c/462502/

JIRA: FUEL-321

Change-Id: Ic3dff3baa1c0be9ac95972557d6a2d26641bfe1b
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/infra/init.yml
mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/infra/init.yml