Install Security Compliance Management in an air-gapped environment

When you install Security Compliance Management in an air-gapped environment, download the required image archives on an internet-connected machine and transfer them to the target. Then run the installation plan locally.

Do not install Security Compliance Management on the same host where Puppet Enterprise is installed.
Before you begin:
Ensure that the required runtime environment (Docker or Podman) and Bolt (3.27.2 or later) are installed on the air-gapped target machine.

To access the Security Compliance Management complyadm module, you need a Forge API token. The complyadm module does not support Windows-based Bolt hosts.

Download image archives

Download the image archives on any internet-connected machine. The machine used to download the archives does not need Docker, Podman, or Linux. The following manifest is for SCM 3.10.0.

The procedure below prepares the Puppet Bolt project and inventory on an internet-connected machine, then transfers them with the image archives to the air-gapped target.

  1. On your non air-gapped machine, create the Security Compliance Management Bolt project and switch to that directory.
    Copy
    mkdir comply-bolt-project 
    cd comply-bolt-project
    bolt project init comply_bolt_project
  2. Edit the bolt-project.yaml file to specify the module to install 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
  3. Install the complyadm module using the command: bolt module install.
    If you are installing Security Compliance Management as a non-root user, see Install Security Compliance Management as a non-root user starting with the next step.
  4. Create an inventory.yaml file for a localhost installation, for example:
    Copy
    --- 
    targets: 
      - name: security-compliance-management 
        uri: localhost 
        config: 
          transport: local
        features: 
          - puppet-agent
  5. Save the downloaded archives in downloads/comply/images/ relative to the project directory. Copy the Bolt project and archives to the air-gapped target.
  6. On the air-gapped target, install Security Compliance Management using: bolt plan run complyadm::install.
  7. Select root as the install type to install Security Compliance Management. If you are installing Security Compliance Management as a non-root user, see Install Security Compliance Management as a non-root user for those instructions.
  8. Specify the inventory target you would like to install on.
  9. Specify the DNS-resolvable hostname of the new Security Compliance Management web console.
  10. When prompted to install a runtime, choose the runtime already installed on the air-gapped target and answer No.
  11. Configure an mTLS certificate or choose to configure this at a later time. Automatically generated certificates are only available for hosts that support SSH.
  12. Choose whether to manually configure a TLS certificate or use the automatically generated self-signed certificate. You can update this certificate at a later time. If you choose to manually configure the TLS certificate, you need a TLS certificate chain, private key, and certificate revocation list (CRL).
Results
You can now log into the application at the resolvable hostname with the default username and password (comply:compliance). You are prompted to change the username and password when you first log in.