* Add a silent configuration file for ifort installation.

This commit is contained in:
gardouille 2015-04-23 17:30:28 +02:00
parent c1d266c015
commit caf813db98
4 changed files with 32 additions and 1 deletions

View File

@ -44,9 +44,14 @@ class ifort (
$ifort_install_tmp_path = $ifort::params::ifort_install_tmp_path,
$ifort_install_dir_name = $ifort::params::ifort_install_dir_name,
$ifort_install_script_name = $ifort::params::ifort_install_script_name,
$ifort_silent_file_path = $ifort::params::ifort_silent_file_path,
$ifort_silent_file_tpl = $ifort::params::ifort_silent_file_tpl,
$ifort_lic_file_path = $ifort::params::ifort_lic_file_path,
) inherits ifort::params {
validate_absolute_path($ifort::ifort_pkg_path)
validate_absolute_path($ifort::ifort_silent_file_path)
validate_absolute_path($ifort::ifort_lic_file_path)
include ifort::install

View File

@ -19,6 +19,16 @@ class ifort::install {
}
# Silent file
file { $ifort::ifort_silent_file_path:
ensure => $::is_ifort ? {
'false' => present,
default => absent,
},
content => template($ifort::ifort_silent_file_tpl),
}
if $::is_ifort == 'false' {
# Uncompress

View File

@ -11,7 +11,7 @@ class ifort::params {
$dep_pkg_ensure = 'present' # Useless if use is_ifort instead
$dep_pkg_manage = true
## Archives
## Archive
# Compiler
$ifort_pkg_url = ''
$ifort_pkg_path = ''
@ -19,6 +19,13 @@ class ifort::params {
$ifort_install_dir_name = 'l_fcompxe_2015.2.164' # Directory name in the archive
$ifort_install_script_name = 'install.sh'
## Install
# Silent
$ifort_silent_file_path = '/tmp/silent_ifort.cfg'
$ifort_silent_file_tpl = 'ifort/silent_install.cfg.erb'
# Licence file
$ifort_lic_file_path = ''
}
}
}

View File

@ -0,0 +1,9 @@
CONTINUE_WITH_INSTALLDIR_OVERWRITE=yes
CONTINUE_WITH_OPTIONAL_ERROR=yes
PSET_INSTALL_DIR=/opt/intel
INSTALL_MODE=NONRPM
ACCEPT_EULA=accept
COMPONENTS=ALL
ACTIVATION_TYPE=license_server
ACTIVATION_LICENSE_FILE=<%= scope.lookupvar('ifort::ifort_lic_file_path') %>