File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,12 @@ A `Policyfile.rb` file may contain the following settings:
2626 - ` :supermarket `
2727
2828 ` :artifactory `
29- : Pulls cookbooks from an Artifactory server. Requires either ` artifactory_api_key ` to be set in ` config.rb ` or
30- ` ARTIFACTORY_API_KEY ` to be set in your environment.
29+ : Pulls cookbooks from an Artifactory server.
30+ There are two ways to authenticate:
31+ - ** API Key** : Set ` artifactory_api_key ` in config.rb or use the environment variable ` ARTIFACTORY_API_KEY ` .
32+ - ** Identity Token** : Set ` artifactory_identity_token ` in config.rb or use the environment variable ` ARTIFACTORY_IDENTITY_TOKEN ` .
33+
34+ ** Note** : If both ` ARTIFACTORY_API_KEY ` and ` ARTIFACTORY_IDENTITY_TOKEN ` are set, ` ARTIFACTORY_IDENTITY_TOKEN ` will take precedence.
3135
3236 For example, ` default_source :artifactory, "https://artifactory.example/api/chef/my-supermarket" ` .
3337
You can’t perform that action at this time.
0 commit comments