datadrivers/terraform-provider-nexus

Support for changing the admin password using terraform

jackmorris-gh opened this issue ยท 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a ๐Ÿ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Create a terraform resource to allow the changing of the admin password to support automation.

When deploying a new nexus instance via terraform, we also apply the nexus configuration using terraform, which needs to be via a user with the correct permissions and with a clean instance, this is the admin user.

Rather than getting the password from the nexus instance admin_password file, we could update the user credentials during the creation of the instance and then store these values into a secret store to then be referenced later to create a more fluid deployment.

New or Affected Resource(s)/Data Source(s)

nexus_admin_credentials

Pro feature

  • Yes. Pro license Required

Community Plugin

No response

Potential Terraform Configuration

resource "nexus_admin_credentials" "credentials" {
user_id       = "admin"
password   = "admin123"
first_name = "Admin"
last_name  = "user"
}

References

No response