Make variables variable, add watched_enabled
This commit is contained in:
		| @@ -1,11 +1,12 @@ | |||||||
| resource "linode_instance" "this" { | resource "linode_instance" "this" { | ||||||
|   authorized_keys = var.authorized_keys |   authorized_keys  = var.authorized_keys | ||||||
|   backups_enabled = true |   backups_enabled  = var.backups_enabled | ||||||
|   booted          = true |   booted           = var.booted | ||||||
|   label           = "${var.host_name}.${var.domain_name}" |   label            = "${var.host_name}.${var.domain_name}" | ||||||
|   image           = var.image |   image            = var.image | ||||||
|   private_ip      = true |   private_ip       = var.private_ip | ||||||
|   tags            = var.tags |   tags             = var.tags | ||||||
|   type            = var.type |   type             = var.type | ||||||
|   region          = var.region |   region           = var.region | ||||||
|  |   watchdog_enabled = var.watchdog_enabled | ||||||
| } | } | ||||||
|   | |||||||
| @@ -5,5 +5,5 @@ terraform { | |||||||
|       version = ">= 1.27.2" |       version = ">= 1.27.2" | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   required_version = ">= 1.2.1" |   required_version = ">= 1.2.2" | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								variable.backups_enabled.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								variable.backups_enabled.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | variable "backups_enabled" { | ||||||
|  |   default = true | ||||||
|  |   type    = bool | ||||||
|  | } | ||||||
							
								
								
									
										4
									
								
								variable.booted.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								variable.booted.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | variable "booted" { | ||||||
|  |   default = true | ||||||
|  |   type    = bool | ||||||
|  | } | ||||||
							
								
								
									
										4
									
								
								variable.private_ip.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								variable.private_ip.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | variable "private_ip" { | ||||||
|  |   default = true | ||||||
|  |   type    = bool | ||||||
|  | } | ||||||
							
								
								
									
										4
									
								
								variable.watchdog_enabled.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								variable.watchdog_enabled.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | variable "watchdog_enabled" { | ||||||
|  |   default = true | ||||||
|  |   type    = bool | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user