Puppet Class: paper_icon_theme::params
- Defined in:
- manifests/params.pp
Overview
paper_icon_theme::params
Handles the module default parameters
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 |
# File 'manifests/params.pp', line 5
class paper_icon_theme::params {
$package_ensure = 'latest'
$user = undef
# Check that the desktop is defined and supported, error if not
if ($facts['desktop'] != undef and $facts['desktop']['type'] != undef) {
case $facts['desktop']['type'] {
'cinnamon': {
$schema = 'org.cinnamon.desktop.interface'
$default_iconset = '\'Mint-X\''
}
default: {
fail("Desktop ${facts['desktop']['type']} is not supported")
}
}
} else {
fail('fact desktop.type is not defined, please ensure this fact is defined and run again')
}
# Check that the Operating System is supported, error if not
case $facts['operatingsystem'] {
'Ubuntu': {}
default: {
fail("${facts['operatingsystem']} not supported")
}
}
}
|