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

Changing user_account in initialization always trigger a replacement #1622

Open
fuse opened this issue Nov 6, 2024 · 0 comments
Open

Changing user_account in initialization always trigger a replacement #1622

fuse opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@fuse
Copy link

fuse commented Nov 6, 2024

Not 100% if this is a bug or a feature not yet implemented but modifying a user_account in a initialization block alway trigger a VM replacement. That’s not something I expected from the documentation.

That seems a bit weird because doing the same thing trough the UI does not trigger this replacement.

Other cloud init options doesn’t seem to be affected. I only tested DNS servers.

I’m currently using version 0.66.2. I can reproduce it for every attributes of the user_account block (ssh keys, username, password).

For instance while changing password :

      ~ initialization {
          ~ upgrade              = false -> (known after apply)
            # (7 unchanged attributes hidden)

          ~ user_account {
              + password = (sensitive value) # forces replacement
                # (2 unchanged attributes hidden)
            }

            # (2 unchanged blocks hidden)
        }

For now my only option has been to ignore changes on initialization[0].user_account.

@fuse fuse added the 🐛 bug Something isn't working label Nov 6, 2024
@bpg bpg moved this to 📥 Inbox in terraform-provider-proxmox Dec 8, 2024
@bpg bpg moved this from 📥 Inbox to ☑️ Todo in terraform-provider-proxmox Feb 23, 2025
@bpg bpg moved this from ☑️ Todo to 🧑🏻‍💻 In Progress in terraform-provider-proxmox Feb 23, 2025
@bpg bpg self-assigned this Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
Status: 🧑🏻‍💻 In Progress
Development

No branches or pull requests

2 participants