Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
a5b431325c | |||
7b728727ff
|
|||
ffa5725a25
|
|||
3ab2e3da9b | |||
a3002d75a8
|
|||
bbff4df38a | |||
80e06acc47
|
|||
bb71f85fdd | |||
1f0b85ca04
|
|||
fbf00e99e1 | |||
7708a0cdf3
|
28
CHANGELOG.md
28
CHANGELOG.md
@@ -6,6 +6,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [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
|
||||
|
||||
### Fixed
|
||||
- cores and bootdisk
|
||||
|
||||
## [0.2.0] - 2024-11-29
|
||||
|
||||
### Added
|
||||
- include template
|
||||
|
||||
## [0.1.0] - 2024-11-29
|
||||
|
||||
### Added
|
||||
|
8
files/cloud_init_deb12.cloud_config
Normal file
8
files/cloud_init_deb12.cloud_config
Normal file
@@ -0,0 +1,8 @@
|
||||
#cloud-config
|
||||
runcmd:
|
||||
- apt update
|
||||
- apt install -y qemu-guest-agent neovim ranger
|
||||
- systemctl start qemu-guest-agent
|
||||
- systemctl enable --now sshd
|
||||
|
||||
fqdn: ${hostname}.${domain}
|
9
node.tf
9
node.tf
@@ -22,7 +22,7 @@ resource "null_resource" "cloud_init_deb12_node" {
|
||||
|
||||
provisioner "file" {
|
||||
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 = [
|
||||
@@ -47,10 +47,10 @@ resource "proxmox_vm_qemu" "node" {
|
||||
os_type = "cloud-init"
|
||||
|
||||
# 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}"
|
||||
|
||||
cpu = var.cpu
|
||||
cores = var.cpu
|
||||
memory = var.memory
|
||||
agent = 1
|
||||
|
||||
@@ -101,7 +101,8 @@ resource "proxmox_vm_qemu" "node" {
|
||||
## TF to think this needs to be rebuilt on every apply
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
network
|
||||
network,
|
||||
bootdisk
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -55,6 +55,7 @@ variable "ssh_private" {
|
||||
|
||||
variable "user_password" {
|
||||
sensitive = true
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "cpu" {
|
||||
|
Reference in New Issue
Block a user