Skip to content

Commit

Permalink
Remove cluster and zone from Redis and PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Feb 15, 2025
1 parent ca4d5c6 commit 6babf93
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
6 changes: 2 additions & 4 deletions google/redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ module "netbox-vm" {

project = var.project

name = coalesce(var.hostname, var.name)
zone = var.zone
name = var.name

role = "Redis"
platform = "Google Cloud"
site = var.site
cluster = var.cluster
site = coalesce(var.site, "Google Cloud ${google_redis_instance.main.region}")

interface = "internal"
ip_address = google_redis_instance.main.host
Expand Down
15 changes: 0 additions & 15 deletions google/redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,11 @@ variable "name" {
type = string
}

variable "hostname" {
type = string
default = null
}

variable "zone" {
type = any
default = null
}

variable "site" {
type = any
default = null
}

variable "cluster" {
type = any
default = null
}

variable "network" {
type = string
}
Expand Down
4 changes: 1 addition & 3 deletions google/sql/postgresql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ module "netbox-vm" {

project = var.project

name = coalesce(var.hostname, var.name)
zone = var.zone
name = var.name

role = "PostgreSQL"
platform = "Google Cloud"
site = coalesce(var.site, "Google Cloud ${google_sql_database_instance.main.region}")
cluster = var.cluster

interface = "internal"
ip_address = google_sql_database_instance.main.private_ip_address
Expand Down
15 changes: 0 additions & 15 deletions google/sql/postgresql/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,11 @@ variable "name" {
default = "postgres"
}

variable "hostname" {
type = string
default = null
}

variable "zone" {
type = any
default = null
}

variable "site" {
type = any
default = null
}

variable "cluster" {
type = any
default = null
}

variable "database_version" {
type = string
default = "POSTGRES_17"
Expand Down

0 comments on commit 6babf93

Please sign in to comment.