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