Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guides/cloud-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}
}
```
Expand All @@ -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
}

# ...
Expand Down
6 changes: 3 additions & 3 deletions templates/guides/cloud-init.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}
}
```
Expand All @@ -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
}

# ...
Expand Down
Loading