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

Unable to automate change of default admin password #79

Open
ramalhais-sky opened this issue Sep 20, 2018 · 2 comments
Open

Unable to automate change of default admin password #79

ramalhais-sky opened this issue Sep 20, 2018 · 2 comments
Assignees

Comments

@ramalhais-sky
Copy link

After changing the admin password using terraform, terraform is unable to continue connecting to avi. Is there a work-around?

resource "avi_useraccount" "avi_user" {
provider = "avi.default_password"
username = "${var.avi_username}"
old_password = "${var.avi_default_password}"
password = "${var.avi_new_password}"
}

I have tried using provider alias, but it doesn't work because the alias with the new password is also initialized and login fails.

@ramalhais-sky
Copy link
Author

Would it be possible to make it work this way?

  • provider:

    • set default_password
    • set password
      if login with "password" fails, login with "default_password"
  • resource avi_useraccount:

    • remove the need for the old password

@ramalhais-sky
Copy link
Author

Also it would be nice if the provider only tried to login and update resources if there is a resource that uses it.
Right now it seems like the provider is always called to update all the resources, even if the resources have count=0 (should not count as using the provider and needing to update the resource if the resource was already count=0 in the terraform state or inexistent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants