pull/50/head
Muhammad Atif Ali 2 years ago
parent d8d18b50f4
commit 3b778d947b
No known key found for this signature in database

@ -28,6 +28,11 @@ provider "artifactory" {
url = "https://${var.jfrog_host}/artifactory"
access_token = var.artifactory_access_token
}
resource "artifactory_scoped_token" "me" {
# This is hacky, but on terraform plan the data source gives empty strings,
# which fails validation.
username = length(local.artifactory_username) > 0 ? local.artifactory_username : "plan"
}
variable "agent_id" {
type = string
@ -46,19 +51,6 @@ For example:
}
EOF
}
# Configure the Artifactory provider
provider "artifactory" {
url = "https://${var.jfrog_host}/artifactory"
access_token = var.artifactory_access_token
}
resource "artifactory_scoped_token" "me" {
# This is hacky, but on terraform plan the data source gives empty strings,
# which fails validation.
username = length(local.artifactory_username) > 0 ? local.artifactory_username : "plan"
}
resource "coder_script" "jfrog" {
agent_id = var.agent_id
display_name = "jfrog"

Loading…
Cancel
Save