Ensure ip_forward set before Docker

Docker will attempt to configure iptables rules if it finds that
ip_forward is not enabled prior to the docker daemon getting started.
We should ensure that this gets configured prior to Docker being
configured if we are configuring it with puppet.

Change-Id: I6ea6fb8ed300d284c961e7474ff84d104f326255
Needed-By: I557e4a41c4e5be3a2f50e5d5ddc86e17c1eb44e1
Related-Bug: #1750194
This commit is contained in:
Alex Schultz 2018-03-05 12:23:05 -07:00
parent b3d0b2f25a
commit 20cdbd3c6b
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ class tripleo::profile::base::docker (
package {'docker':
ensure => installed,
}
# NOTE(aschultz): LP#1750194 - need to set ip_forward before docker starts
# so lets set it before we install the package if we're managing it.
Sysctl::Value<| title == 'net.ipv4.ip_forward' |> -> Package['docker']
$docker_unit_override="[Service]\nMountFlags=\n"