mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-02 03:22:59 +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:
parent
cbff3e4fd4
commit
28327f90e3
@ -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).
|
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
|
```terraform
|
||||||
resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
|
resource "proxmox_virtual_environment_file" "meta_data_cloud_config" {
|
||||||
content_type = "snippets"
|
content_type = "snippets"
|
||||||
datastore_id = "local"
|
datastore_id = "local"
|
||||||
node_name = "pve"
|
node_name = "pve"
|
||||||
@ -174,7 +174,7 @@ resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
|
|||||||
local-hostname: test-ubuntu
|
local-hostname: test-ubuntu
|
||||||
EOF
|
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 {
|
initialization {
|
||||||
# ...
|
# ...
|
||||||
user_data_file_id = proxmox_virtual_environment_file.user_data_cloud_config.id
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
|
@ -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).
|
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
|
```terraform
|
||||||
resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
|
resource "proxmox_virtual_environment_file" "meta_data_cloud_config" {
|
||||||
content_type = "snippets"
|
content_type = "snippets"
|
||||||
datastore_id = "local"
|
datastore_id = "local"
|
||||||
node_name = "pve"
|
node_name = "pve"
|
||||||
@ -42,7 +42,7 @@ resource "proxmox_virtual_environment_file" "metadata_cloud_config" {
|
|||||||
local-hostname: test-ubuntu
|
local-hostname: test-ubuntu
|
||||||
EOF
|
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 {
|
initialization {
|
||||||
# ...
|
# ...
|
||||||
user_data_file_id = proxmox_virtual_environment_file.user_data_cloud_config.id
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
|
Loading…
Reference in New Issue
Block a user