puppetlabs_spec_helper icon indicating copy to clipboard operation
puppetlabs_spec_helper copied to clipboard

forge_authorization

Open cdenneen opened this issue 3 years ago • 0 comments

What is the best way to handle this for .fixtures.yml?

https://forge.puppet.com/about/premium

Looks like I can do it like this but obviously storing this into git might not be the best solution. Any other suggestions here?

defaults:
  forge_modules:
    flags: "--module_repository=https://company.jfrog.io/artifactory/api/puppet/puppetrepo/ --authorization_token='Bearer MYTOKENHERE'"

Is there any other option to do this? In the link above it suggests that by updating puppet.conf, essentially running puppet config set forge_authorization 'Bearer MYTOKENHERE will work with puppetlabs_spec_helper. Is that the best solution then?

I just want to document the official recommendation of how to integrate puppetlabs_spec_helper with using Authorization.

cdenneen avatar Nov 10 '21 14:11 cdenneen