Skip to content

Commit 6339786

Browse files
author
Sachin
committed
Update Documentation for Artifactory Authentication Options
Signed-off-by: Sachin <[email protected]>
1 parent be13245 commit 6339786

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/reusable/md/policyfile_rb_settings.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)