Puppet Class: rpmfusion::params
- Defined in:
- manifests/params.pp
Overview
Class: rpmfusion::params
This class defines the default parameters for different operating systems. If the Operating is not supported or an unsupported version is specified, then the puppet run will fail.
Parameters
Variables
- rpmfusion::with_version
-
Parameter with default value of the module class.
Examples
Authors
Marcellus Siegburg <msiegbur@imn.htwk-leipzig.de>
Copyright
Copyright 2013 Marcellus Siegburg
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'manifests/params.pp', line 27
class rpmfusion::params {
$source_repos =
[ 'source', 'updates-released-source', 'updates-testing-source' ]
$repos =
[ '-', 'debug', 'updates-released', 'updates-released-debug',
'updates-testing', 'updates-testing-debug', $source_repos ]
if $::osfamily == 'RedHat' {
case $::operatingsystem {
'Fedora': {
$supported_gpg = ['',11,12,13,14,15,16,17,18,19]
$type = 'fedora'
if $rpmfusion::with_version == true {
$version = $::operatingsystemrelease
} else {
$version = ''
}
}
default: {
$supported_gpg = ['',6]
$type = 'el'
if $rpmfusion::with_version == true {
$version = $::os_maj_version
} else {
$version = ''
}
}
}
} else {
fail("Operating system family ${::osfamily} not supported")
}
if $version in $supported_gpg {
} else {
fail("No GPG for $::{operatingsystem} ${version}.x found")
}
}
|