Files
confdroid_automatic/manifests/params.pp

30 lines
975 B
ObjectPascal
Raw Normal View History

2025-06-02 16:25:06 +02:00
## 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
2025-06-02 16:41:08 +02:00
# @param [String] reqpackages which packages to install
# @param [String] pkg_ensure which version of packages to install
2025-06-02 16:25:06 +02:00
##############################################################################
2025-06-02 16:27:32 +02:00
class automatic_cd::params (
2025-06-02 16:25:06 +02:00
2025-06-02 16:41:08 +02:00
String $reqpackages = 'dnf-automatic',
2025-06-02 17:03:06 +02:00
String $pkg_ensure = 'latest',
2025-06-02 16:41:08 +02:00
2025-06-02 16:25:06 +02:00
) {
2025-06-02 17:03:06 +02:00
# 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'
2025-06-03 16:16:53 +02:00
# Files
$ac_main_config = '/etc/dnf/automatic.conf'
$ac_main_config_erb = '/automatic_cd/automatic.conf.erb'
2025-06-02 16:41:08 +02:00
# includes must be last
include automatic_cd::main::config
2025-06-02 16:25:06 +02:00
}