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

source_file change detection for proxmox_virtual_environment_file #1012

Open
macklenc opened this issue Feb 6, 2024 · 0 comments
Open

source_file change detection for proxmox_virtual_environment_file #1012

macklenc opened this issue Feb 6, 2024 · 0 comments
Labels
✨ enhancement New feature or request

Comments

@macklenc
Copy link

macklenc commented Feb 6, 2024

Is your feature request related to a problem? Please describe.
When using a resource such as:

resource "proxmox_virtual_environment_file" "cloud_config" {
  content_type = "snippets"
  datastore_id = "local-lvm"
  node_name    = "pve0"

  source_file {
    path = "./manifests/controlplane.yaml"
  }
}

it doesn't detect changes of the source file, requiring me to destroy and re-create my deployment whenever "./manifests/controlplane.yaml" is modified. Currently source_raw seems to do this correctly.

Describe the solution you'd like
I would like to see some kind of test to see if a local file has changed or an update to the docs to advocate for using the workaround when using local files.

Describe alternatives you've considered
The following snippet seems to be a valid "work around":

resource "proxmox_virtual_environment_file" "cloud_config" {
  content_type = "snippets"
  datastore_id = "local-lvm"
  node_name    = "pve0"

  source_raw {
    data = file("./manifests/controlplane.yaml")
    file_name = "controlplane.yaml"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant