Skip to content

Latest commit

 

History

History

4.artifactory-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Artifactory Configuration Example

The Artifactory Provider allows you to manage resources in Artifactory using Terraform.

The work here assumes you have an Artifactory instance running and accessible.

If not already installed, you can easily install Artifactory in Kubernetes with the Artifactory Install Example in this repository.

You can also easily install Artifactory in Kubernetes directly with helm by running the following command

helm upgrade --install artifactory jfrog/artifactory --set postgresql.postgresqlPassword="password1"

Create an Artifactory access token and store it in the terraform.tfvars file

artifactory_url = "http://localhost"
artifactory_access_token = "eyJ2ZXI..."

The main.tf file has the configuration that Terraform will use to configure the Artifactory server.

  1. Initialize the Terraform configuration by running the following command
terraform init
  1. Plan the Terraform configuration by running the following command
terraform plan
  1. Apply the Terraform configuration by running the following command
terraform apply
  1. When you are done, you can destroy the resources by running the following command
terraform destroy