0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00

fix(docs): update incorrect reference to meta_data_file_id (#1759)

Signed-off-by: Oleksandr Derevianko <fulsiram@riseup.net>
This commit is contained in:
fulsiram 2025-02-10 05:17:03 -05:00 committed by GitHub
parent cbff3e4fd4
commit 28327f90e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -163,7 +163,7 @@ output "vm_ipv4_address" {
If you wish to keep the user data cloud-init config generic, for example, when deploying multiple VMs for a Kubernetes cluster, you can use a separate snippet with the metadata cloud-init config to set the hostname. Note that it uses the `local-hostname` configuration parameter. See more details in the [cloud-init documentation](https://docs.cloud-init.io/en/latest/reference/yaml_examples/update_hostname.html).
```terraform
resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
resource "proxmox_virtual_environment_file" "meta_data_cloud_config" {
content_type = "snippets"
datastore_id = "local"
node_name = "pve"
@ -174,7 +174,7 @@ resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
local-hostname: test-ubuntu
EOF
file_name = "metadata-cloud-config.yaml"
file_name = "meta-data-cloud-config.yaml"
}
}
```
@ -186,7 +186,7 @@ resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
initialization {
# ...
user_data_file_id = proxmox_virtual_environment_file.user_data_cloud_config.id
metadata_file_id = proxmox_virtual_environment_file.metadata_cloud_config.id
meta_data_file_id = proxmox_virtual_environment_file.meta_data_cloud_config.id
}
# ...

View File

@ -31,7 +31,7 @@ Note that you need to explicitly set the `hostname` in the provided cloud-init c
If you wish to keep the user data cloud-init config generic, for example, when deploying multiple VMs for a Kubernetes cluster, you can use a separate snippet with the metadata cloud-init config to set the hostname. Note that it uses the `local-hostname` configuration parameter. See more details in the [cloud-init documentation](https://docs.cloud-init.io/en/latest/reference/yaml_examples/update_hostname.html).
```terraform
resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
resource "proxmox_virtual_environment_file" "meta_data_cloud_config" {
content_type = "snippets"
datastore_id = "local"
node_name = "pve"
@ -42,7 +42,7 @@ resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
local-hostname: test-ubuntu
EOF
file_name = "metadata-cloud-config.yaml"
file_name = "meta-data-cloud-config.yaml"
}
}
```
@ -54,7 +54,7 @@ resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
initialization {
# ...
user_data_file_id = proxmox_virtual_environment_file.user_data_cloud_config.id
metadata_file_id = proxmox_virtual_environment_file.metadata_cloud_config.id
meta_data_file_id = proxmox_virtual_environment_file.meta_data_cloud_config.id
}
# ...