* Install ifort dependancies.

This commit is contained in:
gardouille 2015-04-23 16:19:50 +02:00
parent 3d47b32eb4
commit 20a22818b2
3 changed files with 24 additions and 1 deletions

View File

@ -5,6 +5,7 @@
##### Features
* New fact is_ifort to check if ifort is available on the system.
* Install ifort dependancies.
##### Changes

View File

@ -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
}

17
manifests/install.pp Normal file
View File

@ -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