abrader / abrader-gms

Git management system types and providers for Puppet utilizing Github, Gitlab, Stash APIs
Apache License 2.0
26 stars 32 forks source link

Token file support #30

Closed reidmv closed 8 years ago

reidmv commented 8 years ago

The token_file parameter can be used in place of the token parameter for applicable types. This allows for the provider to function without the token value being known to the master, or being known during catalog compilation.

To avoid code duplication, this was implemented with a mixin.

The purpose of this is to allow the types/providers to be used in circumstances where the api token is unknown to Puppet (not in Hiera, not in a fact) but is or will be available at the time of catalog application in a file.

abrader commented 8 years ago

Agreed. Nice update @reidmv. Thanks for the PR!