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' (#66) from fenix-gitea-admin-patch-1 into main
Reviewed-on: fenix-gitea-admin/iac-teste#66 Reviewed-by: fenix <tomaslimpinho@gmail.com>
This commit is contained in:
29
proxmox.tf
29
proxmox.tf
@ -7,35 +7,6 @@ provider "proxmox" {
|
||||
}
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_file" "fedora_user_data" {
|
||||
content_type = "snippets"
|
||||
datastore_id = "local-snippets" # outro storage configurado com Snippets
|
||||
node_name = "fedora"
|
||||
|
||||
source_raw {
|
||||
data = <<-EOF
|
||||
#cloud-config
|
||||
hostname: fedora-template
|
||||
users:
|
||||
- name: meuuser
|
||||
ssh_pwauth: true
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
chpasswd:
|
||||
list: |
|
||||
root:SenhaRoot123
|
||||
meuuser:SenhaUser123
|
||||
expire: False
|
||||
package_update: true
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
runcmd:
|
||||
- systemctl enable qemu-guest-agent
|
||||
- systemctl start qemu-guest-agent
|
||||
EOF
|
||||
file_name = "fedora-cloud-init.yaml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user