* Add a exec ressource to install ifort in silent mode.

This commit is contained in:
gardouille 2015-04-23 18:49:51 +02:00
parent caf813db98
commit 788d1663ef
2 changed files with 11 additions and 1 deletions

View File

@ -36,8 +36,15 @@ class ifort::install {
command => "zcat ${ifort::ifort_pkg_path} | tar xvf - -C ${ifort::ifort_install_tmp_path} --",
creates => "${ifort::ifort_install_tmp_path}/${ifort::ifort_install_dir_name}",
onlyif => "test -f ${ifort::ifort_pkg_path}",
}
} ->
# Install
exec { "Install ifort from ${ifort::ifort_pkg_path} file":
command => "${ifort::ifort_install_tmp_path}/${ifort::ifort_install_dir_name}/${ifort::ifort_install_script_name} --silent ${ifort::ifort_silent_file_path}",
creates => $ifort::ifort_bin_path,
timeout => '120',
require => File[$ifort::ifort_silent_file_path],
}
}
} # Private class: ifort::install

View File

@ -23,9 +23,12 @@ class ifort::params {
# Silent
$ifort_silent_file_path = '/tmp/silent_ifort.cfg'
$ifort_silent_file_tpl = 'ifort/silent_install.cfg.erb'
# Licence file
$ifort_lic_file_path = ''
$ifort_bin_path = '/opt/intel/bin/ifort'
}
}
}