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.