[PATCH configure] BZ 800057 - aeolus-cleanup should purge aeolus related files in /var/tmp/
Richard Su
rwsu at redhat.com
Sat Mar 10 00:33:30 UTC 2012
https://bugzilla.redhat.com/show_bug.cgi?id=800057
This patch adds purging of /var/tmp/imagefactory-mock and
/var/tmp/deltacloud-mock*.
---
recipes/aeolus/manifests/deltacloud.pp | 4 ++++
recipes/aeolus/manifests/image-factory.pp | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/recipes/aeolus/manifests/deltacloud.pp b/recipes/aeolus/manifests/deltacloud.pp
index 08cd671..05fc5c2 100644
--- a/recipes/aeolus/manifests/deltacloud.pp
+++ b/recipes/aeolus/manifests/deltacloud.pp
@@ -64,4 +64,8 @@ class aeolus::deltacloud::disabled {
file { '/etc/init.d/deltacloud-mock': ensure => 'absent' }
file { '/etc/init.d/deltacloud-rhevm': ensure => 'absent' }
file { '/etc/init.d/deltacloud-vsphere': ensure => 'absent' }
+
+ if $aeolus_save_data == "false" {
+ exec{"remove_deltacloud_tmp_files": command => "/bin/rm -rf /var/tmp/deltacloud-mock*"}
+ }
}
diff --git a/recipes/aeolus/manifests/image-factory.pp b/recipes/aeolus/manifests/image-factory.pp
index 7c2838b..c9abda8 100644
--- a/recipes/aeolus/manifests/image-factory.pp
+++ b/recipes/aeolus/manifests/image-factory.pp
@@ -97,6 +97,7 @@ class aeolus::image-factory::disabled {
if $aeolus_save_data == "false" {
### Destroy and cleanup aeolus artifacts
exec{"remove_aeolus_templates": command => "/bin/rm -rf /templates"}
+ exec{"remove_imagefactory_tmp_files": command => "/bin/rm -rf /var/tmp/imagefactory-mock"}
}
}
--
1.7.7.6
More information about the aeolus-devel
mailing list