Replies: 2 comments 1 reply
-
Hi @Nordal, this worked for me, it might be a useful starting point. Using cloud-init with the default Using cloud-init with
But there are some, who have no issues with the Make sure to read about the guest agent, Proxmox behavior with agent enabled and not installed is a bit surprising. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I will have a look. |
Beta Was this translation helpful? Give feedback.
-
Hi all
I would like to use a real cloud-init user_data file, and not use the limited proxmox build-in options.
It seems to be doable, but the documentation and examples maybe could be better.
I have made a snippets enabled datastore on proxmox called "snippets" and made the following terraform code:
in the initialization resource, i have added this line:
user_data_file_id = proxmox_virtual_environment_file.ci-user_data.id
and made the following file resource:
resource "proxmox_virtual_environment_file" "ci-user_data" {
content_type = "snippets"
datastore_id = "snippets"
node_name = "proxnode01"
source_file {
path = "ci-user_data.yaml"
}
}
I have placed the ci-user_data.yaml in the root of the terraform folder, but it's not working.
Could anyone come with an example on how to do this?
I have earlier been working with KVM directly, and it was so easy creating a cd-rom containing the user_data file and everything was working. Maybe I am blinded by the "old" method and not seeing the forest because of all the trees.
Looking forward to hear from you.
BR Kasper
Beta Was this translation helpful? Give feedback.
All reactions