From 0e44b53cd25fb799e4fd0171875060dcb781e3f8 Mon Sep 17 00:00:00 2001 From: Graham Gilbert Date: Thu, 29 Aug 2024 09:25:57 -0700 Subject: [PATCH] Add pref for aggressive_update_notification_days --- data/common.yaml | 4 ++-- manifests/config.pp | 2 ++ manifests/init.pp | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/common.yaml b/data/common.yaml index 2a34a68..c993273 100644 --- a/data/common.yaml +++ b/data/common.yaml @@ -45,7 +45,6 @@ munki::munkitools_core_source: '' munki::munkitools_core_version: '' munki::munkitools_receipt: '' munki::munkitools_source: '' -munki::munkitools_source: '' munki::munkitools_launchd_checksum: '' munki::munkitools_launchd_receipt: '' munki::munkitools_launchd_source: '' @@ -57,4 +56,5 @@ munki::munkitools_python_version: '' munki::http_user: '' munki::http_password: '' munki::munki_python: true -munki::manage_profile: true \ No newline at end of file +munki::manage_profile: true +munki::aggressive_update_notification_days: 14 \ No newline at end of file diff --git a/manifests/config.pp b/manifests/config.pp index c1fe241..a5d5636 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,5 +1,6 @@ # Configure munki via dynamic profile class munki::config { + $aggressive_update_notification_days = $munki::aggressive_update_notification_days $apple_software_updates_only = $munki::apple_software_updates_only $client_cert_path = $munki::client_cert_path $client_identifier = $munki::client_identifier @@ -28,6 +29,7 @@ $mcx_settings = { 'AdditionalHttpHeaders' => $additional_http_headers, + 'AggressiveUpdateNotificationDays' => $aggressive_update_notification_days, 'AppleSoftwareUpdatesOnly' => $apple_software_updates_only, 'ClientIdentifier' => $client_identifier, 'DaysBetweenNotifications' => $days_between_notifications, diff --git a/manifests/init.pp b/manifests/init.pp index c89b17b..9f7214e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -62,6 +62,7 @@ String $http_password, Boolean $munki_python, Boolean $manage_profile, + Integer $aggressive_update_notification_days, ) { class { '::munki::config': }