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.
-
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.
- 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-backupThis directory contains your encrypted secrets, certificates, and target configuration. You will restore these from the backup later.
- On an internet-connected machine, open the Bolt project used to manage SCM. If you need to create a project, run:CopyEdit bolt-project.yaml to specify the new module version and your Forge API token. Change the
mkdir comply-bolt-project
cd comply-bolt-project
bolt project init comply_bolt_projectmodulesandmodule-installsections to:CopyInstall the module using---
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.combolt module install. - Create the offline bundle:CopyThis creates
bolt plan run complyadm::install::create_offline_bundleproject.zip, which contains the images and dependencies needed for the upgrade. If you omitproject_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. - Copy
project.zipto the air-gapped runner, create a newcomply-bolt-projectdirectory, and extract the bundle there:Copymkdir comply-bolt-project
cp project.zip comply-bolt-project/
cd comply-bolt-project
unzip project.zip - 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.yamlThese items are unique to your installation.
keys/holds the PKCS7 keypair used to decrypt your secrets,data/contains your encrypted configuration,hiera.yamlconnects the keys to the data directory, andinventory.yamldefines your SCM target. - Run the upgrade plan:CopyWhen prompted to make a backup, enter y. Keep
bolt plan run complyadm::upgradeupload_imagesset totrueso the plan uploads images from the local bundle instead of attempting to pull them from a registry.
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