Upgrade Security Compliance Management in an air-gapped environment
When your Bolt runner does not have internet access, download the required image archives on an internet-connected machine and transfer them to the air-gapped runner. Restore your site-specific configuration before running the upgrade plan.
-
You need an internet-connected machine to download the image archives. This machine does not need Docker, Podman, or Linux.
-
Ensure that the required runtime environment (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 of SCM, you must upgrade to 3.7.1 first, then upgrade to the latest version.
Download image archives
Download the image archives on an internet-connected machine. The following manifest is for SCM 3.10.0.
- nginx v3.10.0
- postgres v3.10.0
- redis v3.10.0
- oauth2-proxy v3.10.0
- scarp v3.10.0
- scarp-init v3.10.0
- hasura-graphql-engine v3.10.0
- hasura-metadata v3.10.0
- comply-identity v3.10.0
- comply-ui v3.10.0
- comply-assessor 4.68.0
Save the downloaded archives in downloads/comply/images/ relative to the Bolt project directory. The procedure backs up the existing project, prepares the updated project and image archives on an internet-connected machine, then transfers them to the air-gapped runner before restoring site-specific configuration.
-
Rename your current Bolt project directory to preserve it as a backup:
Copymv comply-bolt-project comply-bolt-project-backupThis directory contains your encrypted secrets, certificates, and target configuration. You will restore these from the backup in a later step.
- On the internet-connected machine, switch to the
comply-bolt-projectdirectory used to download the image archives:Copycd comply-bolt-project - Edit the bolt-project.yaml file to specify the new version of the module and your Forge API token. Change the
modulesandmodule-installsections 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
complyadmmodule using the command:bolt module install. - Copy the updated Bolt project directory and downloaded image archives to the air-gapped runner. Save the archives in
downloads/comply/images/relative to the project directory. - Restore your site-specific configuration from the backup by copying across 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 (hostnames, credentials, certificates),hiera.yamlwires the keys to the data directory, andinventory.yamldefines your SCM target. Without them, the upgrade plan cannot connect to or configure your installation. -
Run the upgrade plan:
bolt plan run complyadm::upgrade
The plan prompts you to make a backup. Respond to this prompt with y to make a backup. Because the image archives are saved in
downloads/comply/images/, the plan uses the local cache automatically. You see output confirming that an image is served from the local cache:Archive '...comply-assessor_4.60.0.tar.gz' for role 'ui' exists in local cache, not updating. Archive '...comply-assessor_4.60.0.tar.gz' for 'ui' role does not exist on 'scm', uploading.
[...]
Plan completed successfully with no result
Optional parameters
You can pass the following parameters to skip interactive prompts or modify upgrade behavior:
| Parameter | Type | Default | Description |
|---|---|---|---|
ignore_failing_preflights
|
Boolean | false
|
When true, the plan continues even if preflight checks (OS, memory, CPU, required packages) do not pass. |
upload_images
|
Boolean | true
|
Must remain true for air-gapped upgrades. Setting this to false would cause the SCM host to attempt to pull images directly from the registry, which fails without internet access. |
Examples
Skip preflight checks on an air-gapped:
bolt plan run complyadm::upgrade ignore_failing_preflights=true
What the plan does
The upgrade plan performs the following steps in order:
-
Verifies your Bolt version is supported.
-
Optionally runs
complyadm::backupto back up the database and volumes. -
Runs preflight checks (architecture, runtime, memory, OS, CPU, required packages).
-
Skips container runtime installation. In an air-gapped environment the runtime must already be present on the SCM host.
-
Uploads container images from the local archive directory (
downloads/comply/images/) to the target. Images already present on the target are skipped. -
Detects whether a major PostgreSQL version bump has occurred. If so, it automatically stops services, backs up the database, removes the old volume, applies the new version, and restores the backup.
-
Applies updated configuration to all roles (database, backend, UI).
-
Waits for services to become healthy.
-
Runs cleanup tasks.
Security Compliance Management is upgraded to the new version using the downloaded local images. No internet access is required during the upgrade itself.
You can verify the upgrade by navigating to your Security Compliance Management web console, or by running:
bolt plan run complyadm::validate