Apply Ubuntu security updates using Jenkins

Apply Ubuntu security updates using Jenkins

Once you have created an update repository as described in Add an update repository, or if you already have an update repository, you can apply the security updates.

This section instructs you on how to update Ubuntu packages automatically. If you prefer the manual update, use the Apply security updates manually procedure.

To apply the Ubuntu security updates automatically:

  1. Log in to the Jenkins web UI.

  2. Run the Deploy - update system package(s) pipeline specifying the following parameters as required:

    Deploy - update system package(s) pipeline parameters
    Parameter Description
    SALT_MASTER_URL Full Salt API address, for example, https://10.10.10.1:8000
    SALT_MASTER_CREDENTIALS Credentials to the Salt API
    TARGET_SERVERS Salt compound target to match nodes to be updated. For example, [*, G@osfamily:debian].
    TARGET_PACKAGES RSpace delimited list of packages to be updated. For example, [package1=version package2=version]. The empty string means updating all packages to the latest version.
    BATCH_SIZE Added since 2019.2.6 update The batch size for Salt commands targeted for a large amount of nodes. Set to an absolute number of nodes (integer) or percentage, for example, 20 or 20%. For details, see MCP Deployment Guide: Configure Salt Master threads and batching.