Finished first version of network, network-peering and linux-vm modules.
This commit is contained in:
+17
-40
@@ -1,45 +1,21 @@
|
||||
variable "project_id" {
|
||||
description = "The ID of the project."
|
||||
type = string
|
||||
variable "hub" {
|
||||
type = object({
|
||||
name = string
|
||||
region = string
|
||||
zone = string
|
||||
project = string
|
||||
cidr = string
|
||||
})
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
description = "The region for the resources."
|
||||
type = string
|
||||
default = "us-west1"
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
description = "The zone for the resources."
|
||||
type = string
|
||||
default = "us-west1-a"
|
||||
}
|
||||
|
||||
variable "network_name" {
|
||||
description = "The name of the network."
|
||||
type = string
|
||||
default = "dom-lab-network"
|
||||
}
|
||||
|
||||
variable "subnets" {
|
||||
description = "A list of subnets to create."
|
||||
|
||||
type = list(object({
|
||||
name = string
|
||||
cidr = string
|
||||
region = string
|
||||
}))
|
||||
|
||||
default = [{
|
||||
name = "waw-default"
|
||||
cidr = "192.168.16.0/24"
|
||||
region = "us-west1"
|
||||
}]
|
||||
|
||||
validation {
|
||||
condition = var.subnets[0].region != null
|
||||
error_message = "The region for the first subnet must be specified."
|
||||
}
|
||||
variable "spoke" {
|
||||
type = object({
|
||||
name = string
|
||||
region = string
|
||||
zone = string
|
||||
project = string
|
||||
cidr = string
|
||||
})
|
||||
}
|
||||
|
||||
variable "ssh" {
|
||||
@@ -48,6 +24,7 @@ variable "ssh" {
|
||||
public_key = string
|
||||
ssh_user = string
|
||||
}))
|
||||
|
||||
default = [{
|
||||
public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID1Z96CGdoNnbazs89cdnDLDdju6UtuKAZctEAmnEaAC"
|
||||
ssh_user = "slawek@1password"
|
||||
|
||||
Reference in New Issue
Block a user