Skip to content

Latest commit

 

History

History

3.artifactory-install

Artifactory Installation with Helm Example

Using the Terraform Helm Provider to install Artifactory in Kubernetes.

Files

  • The variables.tf contains the different variables configurable in this example.
  • The providers.tf contains the terraform providers needed for this example.
  • The main.tf file has the configuration that Terraform will use to install Artifactory with Helm.

Prepare the Artifactory Configurations

The artifactory-values.yaml file has the values that Helm will use to configure the Artifactory installation.

The artifactory-license-template.yaml file has the license key(s) template that you will need to copy to a artifactory-license.yaml file.

cp artifactory-license-template.yaml artifactory-license.yaml

If you plan on skipping the license key(s) for now, you can leave the artifactory-license.yaml file empty. Terraform will create an empty one for you if you don't create it.

Terraform

  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
# Run the following command to create the resources
terraform apply

# Run with a custom value to one of the variables
terraform apply -var 'artifactory_version=7.98.9'
  1. When you are done, you can destroy the resources by running the following command
terraform destroy