Upgrade Security Compliance Management using an offline bundle

Create an offline bundle on an internet-connected machine, transfer it to your air-gapped Bolt runner, and run the upgrade plan without internet access on the runner.

Use the default registry. The image and registry names in an offline bundle are fixed when the bundle is generated.
Before you begin:
  • You need an internet-connected machine with Docker or Podman to create the bundle.

  • Ensure that Docker or Podman is installed on the SCM host. The upgrade plan cannot install a runtime without internet access.

  • Ensure you are running Bolt 3.27.2 or later on the air-gapped Bolt runner.

  • If you are upgrading from an SCM version earlier than 3.7.1 to the latest version, you must upgrade to 3.7.1 first.

  1. On the air-gapped runner, rename your current Bolt project directory to preserve it as a backup:
    Copy
    mv comply-bolt-project comply-bolt-project-backup

    This directory contains your encrypted secrets, certificates, and target configuration. You will restore these from the backup later.

  2. On an internet-connected machine, open the Bolt project used to manage SCM. If you need to create a project, run:
    Copy
    mkdir comply-bolt-project
    cd comply-bolt-project
    bolt project init comply_bolt_project
    Edit bolt-project.yaml to specify the new module version and your Forge API token. Change the modules and module-install sections to:
    Copy
    ---
    name: comply_bolt_project
    modules:
    - name: puppetlabs/complyadm
      version_requirement: 3.y.z

    module-install:
      forge:
         authorization_token: 'Bearer <your API token>'
         baseurl: https://forgeapi.puppet.com
    Install the module using bolt module install.
  3. Create the offline bundle:
    Copy
    bolt plan run complyadm::install::create_offline_bundle
    This creates project.zip, which contains the images and dependencies needed for the upgrade. If you omit project_root, the plan prompts you to confirm the resolved Bolt project directory. Confirm that this is the project you intend to bundle; if you decline, the plan exits. To select a different directory and skip the prompt, see the install::create_offline_bundle.
  4. Copy project.zip to the air-gapped runner, create a new comply-bolt-project directory, and extract the bundle there:
    Copy
    mkdir comply-bolt-project
    cp project.zip comply-bolt-project/
    cd comply-bolt-project
    unzip project.zip
  5. Restore your site-specific configuration from the backup by copying your keys, data, and inventory:
    Copy
    cp -r ../comply-bolt-project-backup/keys/ keys/
    cp -r ../comply-bolt-project-backup/data/ data/
    cp -r ../comply-bolt-project-backup/ssh/ ssh/
    cp ../comply-bolt-project-backup/hiera.yaml hiera.yaml
    cp ../comply-bolt-project-backup/inventory.yaml inventory.yaml

    These items are unique to your installation. keys/ holds the PKCS7 keypair used to decrypt your secrets, data/ contains your encrypted configuration, hiera.yaml connects the keys to the data directory, and inventory.yaml defines your SCM target.

  6. Run the upgrade plan:
    Copy
    bolt plan run complyadm::upgrade
    When prompted to make a backup, enter y. Keep upload_images set to true so the plan uploads images from the local bundle instead of attempting to pull them from a registry.
Results
Security Compliance Management is upgraded using the images in the offline bundle. No internet access is required during the upgrade.

You can verify the upgrade by navigating to your Security Compliance Management web console or by running:

bolt plan run complyadm::validate