From cd0e32b2c6cb6e3762ddc3edc8932f778161b482 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Tue, 11 Aug 2015 12:17:22 +0200 Subject: [PATCH] Fix ordering issue related to swift.conf The file /etc/swift/swift.conf is managed by puppet. There is no ordering contraint between swift_config resource and the /etc/swift/swift.conf file resource. It causes randomly failure when the swift_config resource applies before the file resource Change-Id: I08803a68ede6e3659e93c342949d8bb4e823ccd9 --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 82e99610..eba8f338 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -37,6 +37,8 @@ class swift( include ::swift::params + File['/etc/swift/swift.conf'] -> Swift_config <||> + if !defined(Package['swift']) { package { 'swift': ensure => $package_ensure,