Files
confdroid_automatic/manifests/params.pp
Arne Teuke 06388a2f71 files
2025-06-03 16:38:51 +02:00

34 lines
1.1 KiB
Puppet

## 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
##############################################################################
class automatic_cd::params (
String $reqpackages = 'dnf-automatic',
String $pkg_ensure = 'latest',
# updates
String $ac_upgrade_type = 'default',
) {
# 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
}