5.5. Package maintenance policy#

This section describes how you can use a package maintenance policy to control when Nubus for UCS installs or removes packages. For information about package management, see Package installation and management. For information about policies in general, see Policies module in Nubus Manual 1.x [4].

A Maintenance Policy defines when Nubus for UCS runs automatic updates or maintenance tasks. You can schedule the maintenance for a specific time or trigger it based on system events, such as after boot or before shutdown. For example:

See also

Package installation and management

for information about package management.

Policies module

in Nubus Manual 1.x [4] for information about policies in general.

5.5.1. How to create a maintenance policy#

You can create a maintenance policy in two ways. Both ways result in the same policy behavior. Use the first way for multi-system environments, and the second way for system-specific configurations.

Centralized policy management:

Create a policy once and assign it to multiple systems.

Computer object policies:

Assign policies directly to individual computer objects.

5.5.1.1. Centralized policy management#

To create a maintenance policy, use the following steps:

  1. Open the Policies module.

  2. To create a policy, click Add.

  3. Select Policy: Maintenance for the Type and choose a Container for the location in the directory service. Click Next.

  4. Define the maintenance settings. For an explanation of the fields, see Understanding maintenance policy fields.

  5. To save the policy, click Save.

5.5.1.2. Computer object policies#

You can also create a Maintenance Policy directly at the computer object in the Computers management module. Use the following steps:

  1. Open the Computers module.

  2. Navigate to the Policies tab and select the section Policy: Maintenance.

  3. Select an existing policy configuration or click Create new Policy.

  4. Define the maintenance settings. For an explanation of the fields, see Understanding maintenance policy fields.

  5. To save the maintenance settings, click Save.

5.5.2. Understanding maintenance policy fields#

You can configure the following settings in the Maintenance Policy:

Perform maintenance after system startup

If you activate this option, the system performs the configured updates when you start the computer.

Perform maintenance before system shutdown

If you activate this option, the system performs the configured updates when you shut down the computer.

Use Cron settings

If you activate this option, use the Month, Day of week, Day, Hour, and Minute fields to specify when the configured updates run.

Reboot after maintenance

This option triggers an automatic restart after release updates either immediately or after a specified number of hours.