Initialize the Puppet bridge
To initialize the bridge for a Puppet connection, you use a configuration file from the Perforce Unified Compliance platform. This is a gzipped JSON file containing client ID, Puppet bridge ID, registration token, cloud certificates, and endpoint URLs. The Perforce Unified Compliance platform generates this configuration file while you are connecting a Puppet instance. See Connect a Puppet instance.
After you download the configuration file in the Perforce Unified Compliance platform, take the following steps:
-
Copy the configuration file to the host where you installed the Puppet bridge.
-
Run
pe-bridge-cli initon the host.For the right invocation for your environment, see the examples at Initialize the Puppet bridge: environment examples.
The
initcommand performs the following steps automatically:-
Extracts the configuration bundle.
-
Generates ECDSA P256 PKI certificates (CA + server certs for both services) or uses custom certs if provided.
-
Writes service configuration to
/etc/perforce/pf-bridge/and/etc/perforce/pe-adapter/. See File locations in Puppet bridge reference information. -
Stores the cloud CA and registration token.
-
Creates SSL directories with appropriate permissions (750).
-
Starts
pf-bridgeandpe-adaptersystemd services.
-
-
pf-bridgeregisters with the Perforce Unified Compliance platform https://github.com/apps/puppet-cloud using the one-time registration token, then deletes the token file. -
pf-bridgeconnects to the SSE stream and begins processing commands.