-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
40 lines (34 loc) · 989 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
locals {
repo_namespace = var.repo_env == null || var.repo_env == "" ? "repo-eclipse-org" : "repo-eclipse-org-${var.repo_env}"
}
terraform {
backend "kubernetes" {
secret_suffix = "state"
config_path = "~/.kube/config"
# namespace = local.repo_namespace
namespace = "repo-eclipse-org"
}
required_providers {
nexus = {
source = "datadrivers/nexus"
version = "2.2.0"
}
}
}
provider "nexus" {
insecure = var.repo_insecure # NEXUS_INSECURE_SKIP_VERIFY Default:true
url = var.repo_address # NEXUS_URL Default:http://127.0.0.1:8080
# username = "admin" # NEXUS_USERNAME Default:admin
# password = "XXXXX" # NEXUS_PASSWORD Default:admin123
timeout = 10 # NEXUS_TIMEOUT Default:30
}
provider "vault" {
# environment variables:
# - VAULT_ADDR
# - VAULT_TOKEN
# - VAULT_CACERT
# - VAULT_CAPATH
# - etc.
address = var.secretsmanager_address
skip_child_token = true
}