mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
Merge pull request 'Update proxmox.tf' (#119) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#119
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"
|
node_name = "fenix"
|
||||||
datastore_id = "local"
|
datastore_id = "local"
|
||||||
content_type = "cloud-init"
|
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
|
packages:
|
||||||
#cloud-config
|
- qemu-guest-agent
|
||||||
users:
|
|
||||||
- name: testeuser
|
|
||||||
plain_text_passwd: testepassword
|
|
||||||
lock_passwd: false
|
|
||||||
shell: /bin/bash
|
|
||||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
||||||
|
|
||||||
packages:
|
runcmd:
|
||||||
- qemu-guest-agent
|
- systemctl enable qemu-guest-agent
|
||||||
|
- systemctl start qemu-guest-agent
|
||||||
|
|
||||||
runcmd:
|
ssh_pwauth: true
|
||||||
- systemctl enable qemu-guest-agent
|
EOF
|
||||||
- systemctl start qemu-guest-agent
|
}
|
||||||
|
|
||||||
ssh_pwauth: true
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user