* Ensure to remove temp files after installation.

This commit is contained in:
gardouille 2015-04-24 13:43:28 +02:00
parent 220c93969d
commit e5cf462514
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
* New fact is_ifort to check if ifort is available on the system. * New fact is_ifort to check if ifort is available on the system.
* Install ifort dependancies. * Install ifort dependancies.
* Install ifort. * Install ifort.
* Ensure to remove temp files after installation.
##### Changes ##### Changes

View File

@ -46,6 +46,17 @@ class ifort::install {
timeout => '120', timeout => '120',
require => File[$ifort::ifort_silent_file_path], 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 } # Private class: ifort::install