Skip to content

Instantly share code, notes, and snippets.

@TJM
Last active December 14, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TJM/eb5a193c17930e2e72578077c729fe19 to your computer and use it in GitHub Desktop.
Save TJM/eb5a193c17930e2e72578077c729fe19 to your computer and use it in GitHub Desktop.
Setup Puppet Enterprise Code Manager to use Artifactory as Puppet Forge

Setup Puppet Enterprise Code Manager to use Artifactory as Puppet Forge

Setup Artifactory

Actually installing Artifactory is outside the scope of this document. It is assumed that your have artifactory PRO or greater already running.

Here are the steps from their documentation on setting up the Puppet Repo: https://www.jfrog.com/confluence/display/RTF/Puppet+Repositories

In the additional files below, you will find a common.yaml and pe.conf fragment.

The common.yaml setting assumes Puppet Enterprise is already running and you an already deploy your control-repo. The pe.conf is an "install time" setting, but you can also set it after installing.

Additional Reading

---
## You can also add this to your common.yaml in your control-repo.
puppet_enterprise::master::code_manager::forge_settings:
baseurl: https://artifactory.domain.com/artifactory/api/puppet/puppet
## This is a portion of the install time parameters
## - https://puppet.com/docs/pe/2017.3/installing_pe.html#pe-configuration-settings-in-pe-conf
## Add this to your pe.conf towards the end before the closing "}" and run the install.
## NOTE: you can also add this to /etc/puppetlabs/enterprise/conf.d/pe.conf if you have already installed.
## Be sure to run `puppet agent -t` to "activate" the changes.
# Use Artifactory
"puppet_enterprise::master::code_manager::forge_settings": {
"baseurl": "https://artifactory.domain.com/artifactory/api/puppet/puppet"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment