* Install ifort dependancies.
This commit is contained in:
parent
3d47b32eb4
commit
20a22818b2
|
@ -5,6 +5,7 @@
|
|||
|
||||
##### Features
|
||||
* New fact is_ifort to check if ifort is available on the system.
|
||||
* Install ifort dependancies.
|
||||
|
||||
##### Changes
|
||||
|
||||
|
|
|
@ -35,7 +35,12 @@
|
|||
#
|
||||
# Copyright 2015 Your name here, unless otherwise noted.
|
||||
#
|
||||
class ifort {
|
||||
class ifort (
|
||||
$dep_pkg_name = $ifort::params::dep_pkg_name,
|
||||
$dep_pkg_ensure = $ifort::params::dep_pkg_ensure,
|
||||
$dep_pkg_manage = $ifort::params::dep_pkg_manage,
|
||||
) inherits ifort::params {
|
||||
|
||||
include ifort::install
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
# === Class: ifort::install
|
||||
#
|
||||
class ifort::install {
|
||||
|
||||
## Packages
|
||||
# Dependencies packages
|
||||
if $ifort::dep_pkg_manage == true {
|
||||
# Only if ifort is not already installed
|
||||
ensure_resource('package', $ifort::dep_pkg_name, { 'ensure' => $::is_ifort ? {
|
||||
'false' => 'present',
|
||||
default => 'absent'
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
} # Private class: ifort::install
|
Loading…
Reference in New Issue