47 lines
1.8 KiB
ObjectPascal
47 lines
1.8 KiB
ObjectPascal
## automatic_cd::params.pp
|
|
# Module name: automatic_cd
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @summary Class manages all parameters for the automatic_cd module
|
|
# @param [String] reqpackages which packages to install
|
|
# @param [String] pkg_ensure which version of packages to install
|
|
# @param [String] ac_upgrade_type what upgrades to manage
|
|
# @param [String] ac_random_sleep random sleep seconds
|
|
# @param [String] ac_network_online_timeout Maximum time until be online
|
|
# @param [String] ac_download_updates whether to download available updates
|
|
# @param [String] ac_apply_updates whether to apply available updates
|
|
# @param [String] ac_reboot when to reboot after applied updates
|
|
# @param [String] ac_emit_via how to inform about emitted updates
|
|
##############################################################################
|
|
class automatic_cd::params (
|
|
|
|
String $reqpackages = 'dnf-automatic',
|
|
String $pkg_ensure = 'latest',
|
|
|
|
# updates
|
|
String $ac_upgrade_type = 'default',
|
|
String $ac_random_sleep = '0',
|
|
String $ac_network_online_timeout = '60',
|
|
String $ac_download_updates = 'yes',
|
|
String $ac_apply_updates = 'yes',
|
|
String $ac_reboot = 'never',
|
|
String $ac_emit_via = 'email',
|
|
|
|
|
|
) {
|
|
# Facts
|
|
$fqdn = $facts['networking']['fqdn']
|
|
$domain = $facts['networking']['domain']
|
|
$os_name = $facts['os']['name']
|
|
$os_release = $facts['os']['release']['major']
|
|
|
|
# Service
|
|
$ac_service = 'dnf-automatic.timer'
|
|
|
|
# Files
|
|
$ac_main_config = '/etc/dnf/automatic.conf'
|
|
$ac_main_config_erb = 'automatic_cd/automatic.conf.erb'
|
|
|
|
# includes must be last
|
|
include automatic_cd::main::config
|
|
}
|