Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
22707124b4 | |||
1f65d3c75e
|
|||
caa489fbf9 | |||
94b701b133
|
|||
90ecf5b603 | |||
f9a664763f
|
|||
789b2ab2a2
|
|||
bdb1847982 | |||
055fdb2282
|
|||
a5b431325c | |||
7b728727ff
|
|||
ffa5725a25
|
|||
3ab2e3da9b | |||
a3002d75a8
|
|||
bbff4df38a | |||
80e06acc47
|
39
CHANGELOG.md
39
CHANGELOG.md
@@ -6,6 +6,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.5.2] - 2025-01-11
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- add ability to set disk size
|
||||||
|
|
||||||
|
## [0.5.1] - 2025-01-11
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- add on boot true for all nodes
|
||||||
|
|
||||||
|
## [0.5.0] - 2024-12-01
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- remove private variables
|
||||||
|
- remove provider
|
||||||
|
|
||||||
|
## [0.4.0] - 2024-11-30
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- install churn
|
||||||
|
|
||||||
|
## [0.3.0] - 2024-11-30
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- allow password to be null
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- revert changes to ip
|
||||||
|
|
||||||
|
## [0.2.3] - 2024-11-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- use source for remote file
|
||||||
|
|
||||||
|
## [0.2.2] - 2024-11-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- make sure file names align
|
||||||
|
|
||||||
## [0.2.1] - 2024-11-29
|
## [0.2.1] - 2024-11-29
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@@ -4,5 +4,7 @@ runcmd:
|
|||||||
- apt install -y qemu-guest-agent neovim ranger
|
- apt install -y qemu-guest-agent neovim ranger
|
||||||
- systemctl start qemu-guest-agent
|
- systemctl start qemu-guest-agent
|
||||||
- systemctl enable --now sshd
|
- systemctl enable --now sshd
|
||||||
|
- curl https://git.front.kjuulh.io/kjuulh/churn-v2/raw/branch/main/install.sh | bash
|
||||||
|
|
||||||
|
|
||||||
fqdn: ${hostname}.${domain}
|
fqdn: ${hostname}.${domain}
|
||||||
|
8
node.tf
8
node.tf
@@ -22,7 +22,7 @@ resource "null_resource" "cloud_init_deb12_node" {
|
|||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
source = local_file.cloud_init_deb12_node.filename
|
source = local_file.cloud_init_deb12_node.filename
|
||||||
destination = "/var/lib/vz/snippets/cloud_init_deb12_node_${var.name}.yml"
|
destination = "/var/lib/vz/snippets/cloud_init_deb12_${var.name}.yml"
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [
|
depends_on = [
|
||||||
@@ -47,7 +47,7 @@ resource "proxmox_vm_qemu" "node" {
|
|||||||
os_type = "cloud-init"
|
os_type = "cloud-init"
|
||||||
|
|
||||||
# Cloud init options
|
# Cloud init options
|
||||||
cicustom = "vendor=local:snippets/cloud_init_deb12_node.yml"
|
cicustom = "vendor=local:snippets/cloud_init_deb12_${var.name}.yml"
|
||||||
ipconfig0 = "ip=${var.ip_address},gw=${var.gateway}"
|
ipconfig0 = "ip=${var.ip_address},gw=${var.gateway}"
|
||||||
|
|
||||||
cores = var.cpu
|
cores = var.cpu
|
||||||
@@ -65,6 +65,8 @@ resource "proxmox_vm_qemu" "node" {
|
|||||||
bootdisk = "scsi0"
|
bootdisk = "scsi0"
|
||||||
scsihw = "virtio-scsi-single"
|
scsihw = "virtio-scsi-single"
|
||||||
|
|
||||||
|
onboot = true
|
||||||
|
|
||||||
serial {
|
serial {
|
||||||
id = 0
|
id = 0
|
||||||
}
|
}
|
||||||
@@ -82,7 +84,7 @@ resource "proxmox_vm_qemu" "node" {
|
|||||||
disk {
|
disk {
|
||||||
storage = "local"
|
storage = "local"
|
||||||
# The size of the disk should be at least as big as the disk in the template. If it's smaller, the disk will be recreated
|
# The size of the disk should be at least as big as the disk in the template. If it's smaller, the disk will be recreated
|
||||||
size = "10G"
|
size = var.disk_size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,10 +8,3 @@ terraform {
|
|||||||
required_version = ">= 0.13"
|
required_version = ">= 0.13"
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "proxmox" {
|
|
||||||
pm_api_url = var.proxmox_url
|
|
||||||
pm_user = var.proxmox_user
|
|
||||||
pm_password = var.proxmox_password
|
|
||||||
pm_tls_insecure = true
|
|
||||||
}
|
|
||||||
|
|
||||||
|
13
variables.tf
13
variables.tf
@@ -3,14 +3,6 @@ variable "proxmox_url" {
|
|||||||
default = "https://proxmox.i.kjuulh.io/api2/json"
|
default = "https://proxmox.i.kjuulh.io/api2/json"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "proxmox_user" {
|
|
||||||
description = "proxmox username (eg. <name>@pve)"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "proxmox_password" {
|
|
||||||
description = "proxmox password"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "proxmox_ip" {
|
variable "proxmox_ip" {
|
||||||
description = "the ip address of the proxmox instance"
|
description = "the ip address of the proxmox instance"
|
||||||
default = "10.0.11.0"
|
default = "10.0.11.0"
|
||||||
@@ -55,6 +47,7 @@ variable "ssh_private" {
|
|||||||
|
|
||||||
variable "user_password" {
|
variable "user_password" {
|
||||||
sensitive = true
|
sensitive = true
|
||||||
|
default = null
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "cpu" {
|
variable "cpu" {
|
||||||
@@ -64,3 +57,7 @@ variable "cpu" {
|
|||||||
variable "memory" {
|
variable "memory" {
|
||||||
default = 512
|
default = 512
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "disk_size" {
|
||||||
|
default = "10G"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user