pull/50/head
Muhammad Atif Ali 2 years ago
parent de8104191e
commit 9171c16ea3
No known key found for this signature in database

@ -32,21 +32,6 @@ module "jfrog" {
}
```
### Configure npm to use Artifactory with yarn
```hcl
module "jfrog" {
source = "https://registry.coder.com/modules/jfrog"
agent_id = coder_agent.example.id
jfrog_host = "YYYY.jfrog.io"
artifactory_access_token = var.artifactory_access_token # An admin access token
package_managers = {
"npm": "npm-local",
}
npm_package_manager = "yarn"
}
## Authentication
Get a JFrog access token from your Artifactory instance. The token must have admin permissions. It is recommended to store the token in a secret terraform variable.

@ -52,12 +52,6 @@ For example:
EOF
}
variable "npm_package_manager" {
type = string
description = "The name of the npm repository in Artifactory."
default = "npm"
}
data "coder_workspace" "me" {}
resource "coder_script" "jfrog" {
@ -71,7 +65,6 @@ resource "coder_script" "jfrog" {
REPOSITORY_NPM : lookup(var.package_managers, "npm", ""),
REPOSITORY_GO : lookup(var.package_managers, "go", ""),
REPOSITORY_PYPI : lookup(var.package_managers, "pypi", ""),
NPM_PACKAGE_MANAGER : var.npm_package_manager,
})
run_on_start = true
}

Loading…
Cancel
Save