From e5cf46251408d12d919a5a8e99ec0579a6f70ba5 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 24 Apr 2015 13:43:28 +0200 Subject: [PATCH] * Ensure to remove temp files after installation. --- CHANGELOG.md | 1 + manifests/install.pp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e7628e..f9f5793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * New fact is_ifort to check if ifort is available on the system. * Install ifort dependancies. * Install ifort. +* Ensure to remove temp files after installation. ##### Changes diff --git a/manifests/install.pp b/manifests/install.pp index 7ca48e1..e180a0e 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -46,6 +46,17 @@ class ifort::install { timeout => '120', require => File[$ifort::ifort_silent_file_path], } + + } + else { # If ifort is available + + # Remove temp files + file { "${ifort::ifort_install_tmp_path}/${ifort::ifort_install_dir_name}": + ensure => absent, + recurse => true, + force => true, + } + } } # Private class: ifort::install