mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update proxmox.tf
This commit is contained in:
35
proxmox.tf
35
proxmox.tf
@ -27,26 +27,27 @@ resource "proxmox_virtual_environment_file" "cloud_init_yaml" {
|
||||
node_name = "fenix"
|
||||
datastore_id = "local"
|
||||
content_type = "cloud-init"
|
||||
file_name = "cloud-init-qga.yaml"
|
||||
source_raw {
|
||||
file_name = "cloud-init-qga.yaml"
|
||||
data = <<EOF
|
||||
#cloud-config
|
||||
users:
|
||||
- name: testeuser
|
||||
plain_text_passwd: testepassword
|
||||
lock_passwd: false
|
||||
shell: /bin/bash
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
|
||||
content = <<EOF
|
||||
#cloud-config
|
||||
users:
|
||||
- name: testeuser
|
||||
plain_text_passwd: testepassword
|
||||
lock_passwd: false
|
||||
shell: /bin/bash
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
runcmd:
|
||||
- systemctl enable qemu-guest-agent
|
||||
- systemctl start qemu-guest-agent
|
||||
|
||||
runcmd:
|
||||
- systemctl enable qemu-guest-agent
|
||||
- systemctl start qemu-guest-agent
|
||||
|
||||
ssh_pwauth: true
|
||||
EOF
|
||||
ssh_pwauth: true
|
||||
EOF
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user