Commit 3963bca5 authored by Ahmad Sherif's avatar Ahmad Sherif

Add static-objects-cache module to gstg and gprd

Related to https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829
parent 16ae10d6
......@@ -1957,3 +1957,12 @@ resource "google_compute_firewall" "gke-master-to-kubelet" {
target_tags = ["gitlab-gke"]
}
module "static-objects-cache" {
entrypoint = "repo-objects.gitlab-static.net"
environment = var.environment
external_storage_token = var.static_objects_external_storage_token
origin_host = "gitlab.com"
route53_zone_id = var.gitlab_static_net_zone_id
source = "git::ssh://[email protected]/gitlab-com/gl-infra/terraform-modules/static-objects-cache.git?ref=v2.0.0"
}
......@@ -12,6 +12,8 @@ variable "gitlab_io_zone_id" {}
variable "gitlab_static_net_zone_id" {}
variable "static_objects_external_storage_token" {}
variable "bootstrap_script_version" {
default = 8
}
......
......@@ -2139,3 +2139,12 @@ module "cloudflare_workers" {
cloudflare_zone_id = "${var.cloudflare_zone_id}"
environment = "${var.environment}"
}
module "static-objects-cache" {
entrypoint = "gstg.repo-objects.gitlab-static.net"
environment = var.environment
external_storage_token = var.static_objects_external_storage_token
origin_host = "staging.gitlab.com"
route53_zone_id = var.gitlab_static_net_zone_id
source = "git::ssh://[email protected]/gitlab-com/gl-infra/terraform-modules/static-objects-cache.git?ref=v2.0.0"
}
......@@ -10,6 +10,8 @@ variable "gitlab_io_zone_id" {}
variable "gitlab_static_net_zone_id" {}
variable "static_objects_external_storage_token" {}
variable "bootstrap_script_version" {
default = 8
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment