generated from CC/VMServiceTemplate
local-run
This commit is contained in:
@@ -5,6 +5,7 @@ locals {
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
resource "proxmox_virtual_environment_file" "cloud_config" {
|
||||
content_type = "snippets"
|
||||
datastore_id = "local"
|
||||
@@ -31,7 +32,7 @@ resource "proxmox_virtual_environment_file" "cloud_config" {
|
||||
- docker
|
||||
shell: /bin/bash
|
||||
ssh-authorized-keys:
|
||||
- "${var.vm_user_sshkey}" # Inject user's SSH key
|
||||
- "${var.vm_user_sshkey}" # +++ Needs to be put into a variable injected by git actions secrets
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
|
||||
packages:
|
||||
@@ -42,6 +43,7 @@ resource "proxmox_virtual_environment_file" "cloud_config" {
|
||||
- gnupg
|
||||
- lsb-release
|
||||
- unattended-upgrades
|
||||
- rsync
|
||||
|
||||
runcmd:
|
||||
- systemctl enable qemu-guest-agent
|
||||
|
||||
@@ -14,8 +14,8 @@ variable "instance_configs" {
|
||||
vmid = string
|
||||
}))
|
||||
default = [
|
||||
{ crispy_name = "snap", vmid = "9002" },
|
||||
{ crispy_name = "crackle", vmid = "9000" },
|
||||
{ crispy_name = "snap", vmid = "902" },
|
||||
{ crispy_name = "crackle", vmid = "901" },
|
||||
{ crispy_name = "pop", vmid = "900" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user