summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/profile/base')
-rw-r--r--manifests/profile/base/docker.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/profile/base/docker.pp b/manifests/profile/base/docker.pp
index 73731ad..d3f6fe7 100644
--- a/manifests/profile/base/docker.pp
+++ b/manifests/profile/base/docker.pp
@@ -83,6 +83,22 @@ class tripleo::profile::base::docker (
ensure => installed,
}
+ $docker_unit_override="[Service]\nMountFlags=\n"
+
+ file {'/etc/systemd/system/docker.service.d':
+ ensure => directory,
+ require => Package['docker'],
+ }
+ -> file {'/etc/systemd/system/docker.service.d/99-unset-mountflags.conf':
+ content => $docker_unit_override,
+ }
+ ~> exec { 'systemd daemon-reload':
+ command => 'systemctl daemon-reload',
+ path => ['/usr/bin', '/usr/sbin'],
+ refreshonly => true,
+ notify => Service['docker']
+ }
+
service { 'docker':
ensure => 'running',
enable => true,