-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.garden.yml
58 lines (58 loc) · 2.3 KB
/
project.garden.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
kind: Project
name: netbox
variables:
base_envname: ${slice((local.env.CI_REF_NAME_SLUG || replace(local.username, ".", "-")), '0', '11')}
google_project_id: ${local.env.GOOGLE_PROJECT || "replace-me-with-your-project-id"}
google_compute_region: ${local.env.GOOGLE_REGION || "us-central1"}
terraform_root: "./terraform/root/netbox-infra"
google_dns_project_id: ${local.env.GOOGLE_DNS_PROJECT || ""}
google_managed_zone: ${local.env.MANAGED_ZONE || "replace-me-with-your-managed-zone-name"}
okta_org_name: ${local.env.OKTA_ORG_NAME || "replace-me-with-your-OKTA-org"}
okta_base_url: ${local.env.OKTA_BASE_URL || "oktapreview.com"}
okta_name_prefix: ${local.env.OKTA_NAME_PREFIX || ""}
okta_assignment_group_name: ${local.env.OKTA_ASSIGNMENT_GROUP_NAME || "Everyone" }
disable_okta_auth: ${local.env.DISABLE_OKTA_AUTH || true }
cert_registration_email: ${local.env.CERT_REG_EMAIL || "[email protected]"}
netbox_version: ${local.env.NETBOX_VERSION || "v3.5.1"} # renovate: depName=netbox-community/netbox
environments:
- name: dev
defaultNamespace: user-${var.base_envname}
- name: prod
defaultNamespace: netbox
production: true
providers:
- name: exec
initScript: "${local.projectPath}/bootstrap.sh ${var.google_project_id} ${var.terraform_root}"
- name: terraform
dependencies:
- exec
version: 1.0.5
initRoot: "${var.terraform_root}"
autoApply: true
allowDestroy: false
variables:
project_id: ${var.google_project_id}
region: ${var.google_compute_region}
gcloud_get_credentials: true
- name: kubernetes
context: gke_${var.google_project_id}_${var.google_compute_region}_${providers.terraform.outputs.cluster_name}
environments:
- dev
imagePullSecrets:
- name: repo-access
namespace: default
deploymentRegistry:
hostname: ${var.google_compute_region}-docker.pkg.dev
namespace: ${var.google_project_id}/containers
dependencies:
- terraform
- name: kubernetes
context: gke_${var.google_project_id}_${var.google_compute_region}_${providers.terraform.outputs.cluster_name}
namespace: netbox
deploymentRegistry:
hostname: ${var.google_compute_region}-docker.pkg.dev
namespace: ${var.google_project_id}/containers
environments:
- prod
dependencies:
- terraform