diff --git a/docs/guides/cloud-init.md b/docs/guides/cloud-init.md index 73814a3c..983aec1c 100644 --- a/docs/guides/cloud-init.md +++ b/docs/guides/cloud-init.md @@ -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 } # ... diff --git a/templates/guides/cloud-init.md.tmpl b/templates/guides/cloud-init.md.tmpl index 0745a8f2..ba7ff728 100644 --- a/templates/guides/cloud-init.md.tmpl +++ b/templates/guides/cloud-init.md.tmpl @@ -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 } # ...