mirror of
				https://github.com/optim-enterprises-bv/terraform-talos.git
				synced 2025-10-31 02:08:32 +00:00 
			
		
		
		
	update cultr
This commit is contained in:
		| @@ -11,7 +11,7 @@ variable "vultr_region" { | |||||||
|  |  | ||||||
| variable "talos_version" { | variable "talos_version" { | ||||||
|   type    = string |   type    = string | ||||||
|   default = "v1.0.3" |   default = "v1.3.0" | ||||||
| } | } | ||||||
|  |  | ||||||
| locals { | locals { | ||||||
|   | |||||||
| @@ -11,10 +11,10 @@ packer { | |||||||
| source "vultr" "talos" { | source "vultr" "talos" { | ||||||
|   api_key   = var.vultr_api_key |   api_key   = var.vultr_api_key | ||||||
|   region_id = var.vultr_region |   region_id = var.vultr_region | ||||||
|   plan_id   = "vc2-1c-1gb" |   plan_id   = "vc2-1c-2gb" | ||||||
|  |  | ||||||
|   # Arch Linux |   # Arch Linux | ||||||
|   iso_id        = "20eceb4f-7b28-466e-aaf4-cff60385c30d" |   iso_id        = "08597093-bb6f-48c3-b812-37feeabff4b0" | ||||||
|   state_timeout = "10m" |   state_timeout = "10m" | ||||||
|   ssh_username  = "root" |   ssh_username  = "root" | ||||||
|   ssh_password  = "packer" |   ssh_password  = "packer" | ||||||
| @@ -42,7 +42,7 @@ build { | |||||||
|   sources = ["source.vultr.talos"] |   sources = ["source.vultr.talos"] | ||||||
|  |  | ||||||
|   provisioner "file" { |   provisioner "file" { | ||||||
|     source      = "../../../talos/_out/vultr-amd64.raw.xz" |     source      = "vultr-amd64.raw.xz" | ||||||
|     destination = "/tmp/talos.raw.xz" |     destination = "/tmp/talos.raw.xz" | ||||||
|   } |   } | ||||||
|   provisioner "shell" { |   provisioner "shell" { | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								vultr/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								vultr/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  | _cfgs/ | ||||||
|  | templates/controlplane.yaml | ||||||
|  | talos.yaml | ||||||
|  | controlplane-*.yaml | ||||||
|  | worker-*.yaml | ||||||
| @@ -6,19 +6,27 @@ data "vultr_snapshot" "talos" { | |||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | resource "vultr_vpc" "main" { | ||||||
|  |   description    = "main" | ||||||
|  |   region         = "ams" | ||||||
|  |   v4_subnet      = "10.0.0.0" | ||||||
|  |   v4_subnet_mask = 24 | ||||||
|  | } | ||||||
|  |  | ||||||
| resource "vultr_instance" "controlplane" { | resource "vultr_instance" "controlplane" { | ||||||
|   plan        = "vc2-1c-1gb" |   plan        = "vc2-2c-4gb" | ||||||
|   region      = "ams" |   region      = "ams" | ||||||
|   snapshot_id = data.vultr_snapshot.talos.id |   snapshot_id = data.vultr_snapshot.talos.id | ||||||
|   label       = "talos" |   label       = "talos" | ||||||
|   tag         = "controlplane" |   hostname    = "controlplane-1" | ||||||
|   hostname    = "master-1" |  | ||||||
|  |  | ||||||
|   enable_ipv6 = true |   enable_ipv6 = true | ||||||
|   private_network_ids = ["329f9a26-d475-41f0-8e1f-b8cf11814848"] |   vpc_ids     = [vultr_vpc.main.id] | ||||||
|   user_data   = file("talos.yaml") |   user_data   = file("talos.yaml") | ||||||
|  |  | ||||||
|   backups          = "disabled" |   backups          = "disabled" | ||||||
|   ddos_protection  = false |   ddos_protection  = false | ||||||
|   activation_email = false |   activation_email = false | ||||||
|  |  | ||||||
|  |   tags = ["develop", "test"] | ||||||
| } | } | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ terraform { | |||||||
|   required_providers { |   required_providers { | ||||||
|     vultr = { |     vultr = { | ||||||
|       source  = "vultr/vultr" |       source  = "vultr/vultr" | ||||||
|       version = "2.4.1" |       version = "2.11.4" | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Serge Logvinov
					Serge Logvinov