profile_update_os
: configure functionality for upgrading OS packagesprofile_update_os::kernel_upgrade
: Apply kernel updates via cronprofile_update_os::kpatch
: Install kpatchprofile_update_os::scheduled_reboot
: Reboot node at scheduled time via cronprofile_update_os::yum_upgrade
: Apply yum updates via cron
profile_update_os::calculate_day_of_week
: Select the default day of the week that a host applies os updates. Wed is default to avoid holidays, long weekends, etc. dev/test nodes updatprofile_update_os::calculate_week_of_month
: Select the default week of the month that a host applies os updates. Calculated to be the modulus 4 of the last character of the short hostna
configure functionality for upgrading OS packages
include profile_update_os
The following parameters are available in the profile_update_os
class:
Data type: String
Directory where root cron scripts exist
Apply kernel updates via cron
include profile_update_os::kernel_upgrade
The following parameters are available in the profile_update_os::kernel_upgrade
class:
enabled
message
random_delay
reboot_always
reboot_num_pkgs_updated_since_reboot
reboot_num_pkgs_updated_today
reboot_pkgs_list
update_day_of_week
update_hour
update_minute
update_months
update_week_of_month
Data type: Boolean
state of whether kernel updates via cron are enabled
Data type: String
Message broadcast to users before update and reboot
Data type: Integer
Maximum number of minutes to random delay before applying kernel updates
Data type: Boolean
Always trigger reboot even if no updates require it
Data type: Integer
Minimum number of packages updated since reboot to trigger reboot Negative value means to ignore and use script default value
Data type: Integer
Minimum number of packages updated today to trigger reboot Negative value means to ignore and use script default value
Data type: Array[String]
List of updated packages that should always trigger reboot
Data type: String
Contains day of week abbreviation for kernel update cron e.g. "Sun", "Mon", "Tue", etc. If not defined day of week is calculated from hostname
Data type: Integer
Hour for kernel update cron There is a random delay before the kernel update occurs
Data type: Integer
Minute for kernel update cron There is a random delay before the kernel update occurs
Data type: Array[String]
Names of months (as 3 letter abbreviations) for kernel update cron Empty array implies to run every month
Data type: String
Week of the month for kernel update cron, e.g. "1"-"5" or "any" If not defined cron runs every week
Install kpatch
include profile_update_os::kpatch
The following parameters are available in the profile_update_os::kpatch
class:
Data type: Boolean
Install kpatch package and start service, noop if set to false (no clean-up)
Data type: Boolean
Install the kpatch-patch package for the current kernel
Data type: String
Specify the exact kpatch-patch to install (default is to go to latest)
Example locking kpatch-patch to version+release 0-0 under the 4.18.0-372.41.1 kernel:
profile_update_os::kpatch::kpatch_patch_version: "4_18_0-372_41_1-0-0.el8_6"
Reboot node at scheduled time via cron
include profile_update_os::scheduled_reboot
The following parameters are available in the profile_update_os::scheduled_reboot
class:
Data type: String
Command to handle the reboot
Data type: Boolean
state of whether reboots via cron are enabled
Data type: String
Contains day of week abbreviation for reboot e.g. "Sun", "Mon", "Tue", etc.
Data type: Integer
Hour for cron reboot
Data type: Integer
Minute for reboot
Data type: Array[String]
Names of months (as 3 letter abbreviations) for reboot Empty array implies to run every month
Data type: String
Week of the month for reboot, e.g. "1"-"5" or "any" If not defined cron runs every week
While the class name refers to 'yum', this class also supports 'zypper' in SUSE.
include profile_update_os::yum_upgrade
The following parameters are available in the profile_update_os::yum_upgrade
class:
command
config_file
enabled
excluded_packages
random_delay
package
service
update_day_of_week
update_hour
update_minute
update_months
update_week_of_month
yum_config_file
Data type: String
Command to apply yum updates for the OS version
Data type: String
Full path to yum update config file for the OS version
Data type: Boolean
State of whether yum updates via cron are enabled
Data type: Array
List of packages to exclude from yum updates
Data type: Integer
Maximum number of minutes to randomly wait before applying yum updates
Data type: String
Package name for the yum update package for the OS version
Data type: String
Service name for the yum update service for the OS version
Data type: String
Day of week abbreviation for yum update cron e.g. "Sun", "Mon", "Tue", etc. If not defined day of week is calculated from hostname
Data type: Integer
Hour for yum update cron There is a random delay of up to 30 minutes before the yum update occurs
Data type: Integer
Minute for yum update cron There is a random delay of up to 30 minutes before the yum update occurs
Data type: Array[String]
Names of months (as 3 letter abbreviations) for kernel update cron Empty array implies to run every month
Data type: String
Week of the month for yum update cron, e.g. "1"-"5" or "any" If not defined cron runs every week
Data type: String
Full path to yum config file for the OS version
Type: Puppet Language
Select the default day of the week that a host applies os updates. Wed is default to avoid holidays, long weekends, etc. dev/test nodes update the day before the default for testing.
Select the default day of the week that a host applies os updates. Wed is default to avoid holidays, long weekends, etc. dev/test nodes update the day before the default for testing.
Returns: String
Data type: String
Type: Puppet Language
Select the default week of the month that a host applies os updates. Calculated to be the modulus 4 of the last character of the short hostname.
Select the default week of the month that a host applies os updates. Calculated to be the modulus 4 of the last character of the short hostname.
Returns: String
Data type: String