Working module as per https://www.linode.com/docs/guides/create-terraform-module/
This commit is contained in:
1 parent
32d0a09ccf
commit
bb8b6dd978
9 files changed
+107
-234
No files matched your search
+17
-35
@@ -1,47 +1,29 @@
|
||||
## Required Variables
|
||||
##
|
||||
|
||||
variable "vpc_label" {
|
||||
description = "The label for the vpc"
|
||||
type = string
|
||||
variable "token" {
|
||||
description = " Linode API token"
|
||||
}
|
||||
|
||||
variable "vpc_subnet_label" {
|
||||
description = "The label for the vpc subnet"
|
||||
type = string
|
||||
variable "root_pass" {
|
||||
description = "Your Linode's root user's password."
|
||||
}
|
||||
|
||||
variable "ci_cd_root_pass" {
|
||||
description = "Root password for ci-cd instance"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "observability_root_pass" {
|
||||
description = "Root password for observability instance"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
## Optional Variables
|
||||
##
|
||||
|
||||
variable "vpc_description" {
|
||||
description = "The description for the vpc"
|
||||
type = string
|
||||
default = "No description provided to tofu client"
|
||||
variable "image" {
|
||||
description = "Image to use for Linode instance."
|
||||
default = "linode/almalinux9"
|
||||
}
|
||||
|
||||
variable "vpc_subnet_ipv4" {
|
||||
description = "The CIDR IPV4 subnet for the vpc"
|
||||
type = string
|
||||
default = "10.0.0.0/16"
|
||||
variable "label" {
|
||||
description = "The Linode's label is for display purposes only, but must be unique."
|
||||
default = "default-eqit-instance"
|
||||
}
|
||||
|
||||
variable "ci_cd_type" {
|
||||
description = "The linode instance type for ci-cd"
|
||||
type = string
|
||||
default = "g6-standard-2"
|
||||
variable "region" {
|
||||
description = "The region where your Linode will be located."
|
||||
default = "us-ord"
|
||||
}
|
||||
|
||||
variable "token" {}
|
||||
variable "region" {}
|
||||
variable "type" {
|
||||
description = "Your Linode's plan type."
|
||||
default = "g6-standard-1"
|
||||
}
|
||||
Reference in new issue
Block a user