OP#547 change string to array

This commit is contained in:
2026-03-29 16:29:35 +02:00
parent 538bd8ef5a
commit b318fdd26c
2 changed files with 33 additions and 19 deletions

View File

@@ -4,14 +4,15 @@
# @summary Class manages all parameters for the confdroid_automatic module
# @param [String] ac_reqpackages which packages to install
# @param [String] ac_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. Can be
# 'default', 'security', 'minimal' or 'all'
# @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
# @param [String] ac_email_to where to send the email to
# @param [Array[String]] ac_email_to where to send the email to
# @param [String] ac_email_host which host to use to send the email
##############################################################################
class confdroid_automatic::params (
@@ -27,7 +28,7 @@ class confdroid_automatic::params (
String $ac_apply_updates = 'yes',
String $ac_reboot = 'never',
String $ac_emit_via = 'email',
String $ac_email_to = 'root@example.net',
Array[String] $ac_email_to = ['root@example.net','ops@example.net'],
String $ac_email_host = 'localhost',
) {