Puppet
Before you begin
Puppet CLI or r10k: Install and configure on your local machine before proceeding.
Harness permissions: Registry-create access in the target project. Go to RBAC in Harness to configure roles.
Create a Puppet Artifact Registry
Go to the Artifact Registry module in your Harness project.
Select New Artifact Registry.
In the Registry Type list, select Puppet Registry.
Provide a Registry Name.
Optionally, add a Description and Labels for better organization.
Choose visibility between Public and Private.
Select Create Registry to finalize.
Configure an upstream proxy (optional)
An upstream proxy allows your registry to fetch Puppet modules from external sources (such as the Puppet Forge) if they are not available locally.
Create an upstream proxy
In the Artifact Registry module, select the dropdown next to New Artifact Registry and select Upstream Proxy.
Choose Puppet Registry as the proxy type.
Enter an upstream proxy name.
Enter your remote registry URL (for example,
https://forgeapi.puppet.com).Choose your Authentication method (
Anonymousby default).Select Create Proxy to establish the connection.
Configure the upstream proxy in your registry
In the Artifact Registry module, select an existing Artifact Registry.
Select the Configuration tab.
Under Advanced (Optional), select Configure Upstream.
Select from the list of compatible proxies to add them to your registry.
Select Save to save the configuration.
Set up the client
With your Puppet registry created, you can now authenticate with your Harness registry using Puppet CLI or r10k.
1. Configure authentication
In your Harness Puppet Artifact Registry, select Setup Client and then Generate Token to generate an identity token for authentication.
2. Install a Puppet module
Edit /etc/puppetlabs/puppet/puppet.conf:
Install the module:
Edit r10k.yaml:
Add the module to your Puppetfile:
Resolve the Puppetfile:
3. Upload a Puppet module
Upload the module tarball using the Harness CLI:
Last updated
Was this helpful?