Puppet Class: foreman::providers::params
- Inherited by:
-
foreman::providers
- Defined in:
- manifests/providers/params.pp
Overview
foreman::providers default parameters
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/providers/params.pp', line 2
class foreman::providers::params {
# Dependency packages for different providers supplied in this module
$oauth = true
$is_aio = fact('aio_agent_version') =~ String[1]
# OS specific package names
case $facts['os']['family'] {
'RedHat': {
if $is_aio {
$oauth_package = 'puppet-agent-oauth'
} else {
$oauth_package = 'rubygem-oauth'
}
}
'Debian': {
if $is_aio {
$oauth_package = 'puppet-agent-oauth'
} else {
$oauth_package = 'ruby-oauth'
}
}
'FreeBSD': {
$oauth_package = 'rubygem-oauth'
}
'Archlinux': {
$oauth_package = 'ruby-oauth'
}
'Linux': {
case $facts['os']['name'] {
'Amazon': {
if $is_aio {
$oauth_package = 'puppet-agent-oauth'
} else {
$oauth_package = 'rubygem-oauth'
}
}
default: {
fail("${facts['networking']['hostname']}: This class does not support operatingsystem ${facts['os']['name']}")
}
}
}
default: {
fail("${facts['networking']['hostname']}: This class does not support osfamily ${facts['os']['family']}")
}
}
}
|