Allow creation of regional templates in compute-vm module (#3114)
* allow creation of regional templates in compute-vm module * tfdoc * fix blueprint
This commit is contained in:
committed by
GitHub
parent
8af9b4c845
commit
b9ea8a6c26
@@ -87,7 +87,7 @@ module "instance_template" {
|
||||
image = "projects/cos-cloud/global/images/family/cos-stable"
|
||||
}
|
||||
}
|
||||
create_template = true
|
||||
create_template = {}
|
||||
metadata = {
|
||||
user-data = module.cos-nginx.cloud_config
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ module "gcve-mon-template" {
|
||||
name = "gcve-mon-template"
|
||||
zone = var.vm_mon_config.vm_mon_zone
|
||||
instance_type = var.vm_mon_config.vm_mon_type
|
||||
create_template = true
|
||||
create_template = {}
|
||||
can_ip_forward = false
|
||||
network_interfaces = [
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ module "instance_template_ew1" {
|
||||
metadata = {
|
||||
startup-script-url = "gs://cloud-training/gcpnet/httplb/startup.sh"
|
||||
}
|
||||
create_template = true
|
||||
create_template = {}
|
||||
tags = [
|
||||
"http-server"
|
||||
]
|
||||
@@ -113,7 +113,7 @@ module "instance_template_ue1" {
|
||||
metadata = {
|
||||
startup-script-url = "gs://cloud-training/gcpnet/httplb/startup.sh"
|
||||
}
|
||||
create_template = true
|
||||
create_template = {}
|
||||
tags = [
|
||||
"http-server"
|
||||
]
|
||||
|
||||
@@ -21,7 +21,7 @@ module "nva_instance_templates" {
|
||||
source = "../../../modules/compute-vm"
|
||||
project_id = module.project_landing.project_id
|
||||
can_ip_forward = true
|
||||
create_template = true
|
||||
create_template = {}
|
||||
name = "nva-${each.value}"
|
||||
service_account = {
|
||||
auto_create = true
|
||||
|
||||
@@ -110,7 +110,7 @@ module "test_vms" {
|
||||
"https-server",
|
||||
"ssh"
|
||||
]
|
||||
create_template = var.ilb_create
|
||||
create_template = var.ilb_create ? {} : null
|
||||
}
|
||||
|
||||
module "test_vm_migs" {
|
||||
|
||||
@@ -107,7 +107,7 @@ module "gitlab-runner-template" {
|
||||
service_account = {
|
||||
email = module.runner-mig-sa.0.email
|
||||
}
|
||||
create_template = true
|
||||
create_template = {}
|
||||
}
|
||||
|
||||
module "gitlab-runner-mig" {
|
||||
|
||||
Reference in New Issue
Block a user