How to configure Hashicorp RPM registry in Artifactory?

How to configure Hashicorp RPM registry in Artifactory?

AuthorFullName__c
Andrey Granovsky
articleNumber
000005122
ft:sourceType
Salesforce
FirstPublishedDate
2021-08-19T16:01:35Z
lastModifiedDate
2021-08-19
VersionNumber
4

In this article, we will configure the Hashicorp Public Linux Repo in Artifactory. The following example is configured for the RHEL OS.

Please follow the steps below to configure the remote repository for the Hashicorp RPM registry:

  • Create RPM remote repository named “hashicorp-remote” for example, and configured the https://rpm.releases.hashicorp.com/ as the URL of this repository
  • On the client, create/modify the /etc/yum.repos.d/artifactory.repo file and add the following (make sure to change the <password> and <ARTIFACTORY_URL>):
[hashicorp] 
name=Hashicorp Stable - $basearch 
baseurl=http://admin:<passowrd>@<ARTIFACTORY_URL>/artifactory/hashicorp-remote/RHEL/$releasever/$basearch/stable 
enabled=1 
gpgcheck=1 
gpgkey=https://rpm.releases.hashicorp.com/gpg
  • Test the configuration by running "yum install terraform" for example.
Now when it is all set you should be able to use the Hashicorp Public Linux Repository as a remote repository in Artifactory.