config file

This commit is contained in:
Arne Teuke
2025-06-03 17:01:11 +02:00
parent 06388a2f71
commit 06fa35b7f8
2 changed files with 24 additions and 11 deletions

View File

@@ -5,6 +5,12 @@
# @param [String] reqpackages which packages to install # @param [String] reqpackages which packages to install
# @param [String] pkg_ensure which version of 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_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 ( class automatic_cd::params (
@@ -13,6 +19,13 @@ class automatic_cd::params (
# updates # updates
String $ac_upgrade_type = 'default', 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 # Facts

View File

@@ -5,30 +5,30 @@
# What kind of upgrade to perform: # What kind of upgrade to perform:
# default = all available upgrades # default = all available upgrades
# security = only the security upgrades # security = only the security upgrades
upgrade_type = default upgrade_type = <%= @ac_upgrade_type %>
random_sleep = 0 random_sleep = <%= @ac_random_sleep %>
# Maximum time in seconds to wait until the system is on-line and able to # Maximum time in seconds to wait until the system is on-line and able to
# connect to remote repositories. # connect to remote repositories.
network_online_timeout = 60 network_online_timeout = <%= @ac_network_online_timeout %>
# To just receive updates use dnf-automatic-notifyonly.timer # To just receive updates use dnf-automatic-notifyonly.timer
# Whether updates should be downloaded when they are available, by # Whether updates should be downloaded when they are available, by
# dnf-automatic.timer. notifyonly.timer, download.timer and # dnf-automatic.timer. notifyonly.timer, download.timer and
# install.timer override this setting. # install.timer override this setting.
download_updates = yes download_updates = <%= @ac_download_updates %>
# Whether updates should be applied when they are available, by # Whether updates should be applied when they are available, by
# dnf-automatic.timer. notifyonly.timer, download.timer and # dnf-automatic.timer. notifyonly.timer, download.timer and
# install.timer override this setting. # install.timer override this setting.
apply_updates = no apply_updates = <%= @ac_apply_updates %>
# When the system should reboot following upgrades: # When the system should reboot following upgrades:
# never = don't reboot after upgrades # never = don't reboot after upgrades
# when-changed = reboot after any changes # when-changed = reboot after any changes
# when-needed = reboot when necessary to apply changes # when-needed = reboot when necessary to apply changes
reboot = never reboot = <%= @ac_reboot %>
# The command that is run to trigger a system reboot. # The command that is run to trigger a system reboot.
reboot_command = "shutdown -r +5 'Rebooting after applying package updates'" reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"
@@ -48,12 +48,12 @@ reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"
# command compatible with sendmail. # command compatible with sendmail.
# Default is email,stdio. # Default is email,stdio.
# If emit_via is None or left blank, no messages will be sent. # If emit_via is None or left blank, no messages will be sent.
emit_via = stdio emit_via = <%= @ac_emit_via %>
[email] [email]
# The address to send email messages from. # The address to send email messages from.
email_from = root@example.com email_from = root@<%= @qfqdn %>
# List of addresses to send messages to. # List of addresses to send messages to.
email_to = root email_to = root