From a89b5ceccf8dd33e089dfb2d0b0ee7f29b781d2e Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 15 Nov 2023 10:03:07 +0300 Subject: [PATCH] fix(jfrog-token): add `check_license` attribute to skip pre-flight license check --- jfrog-token/main.tf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jfrog-token/main.tf b/jfrog-token/main.tf index a586148..e07d05c 100644 --- a/jfrog-token/main.tf +++ b/jfrog-token/main.tf @@ -23,6 +23,12 @@ variable "artifactory_access_token" { description = "The admin-level access token to use for JFrog." } +variable "check_license" { + type = bool + description = "If your usage doesn't require a license, you can set `check_license` attribute to `false` to skip this check." + deafult = false +} + variable "username_field" { type = string description = "The field to use for the artifactory username. i.e. Coder username or email." @@ -58,8 +64,9 @@ locals { # Configure the Artifactory provider provider "artifactory" { - url = join("/", [var.jfrog_url, "artifactory"]) - access_token = var.artifactory_access_token + url = join("/", [var.jfrog_url, "artifactory"]) + access_token = var.artifactory_access_token + check_license = var.check_license } resource "artifactory_scoped_token" "me" {