datadrivers / terraform-provider-nexus

Terraform provider for Sonatype Nexus
https://registry.terraform.io/providers/datadrivers/nexus
Mozilla Public License 2.0
119 stars 53 forks source link

Support for changing the admin password using terraform #428

Open jackmorris-gh opened 9 months ago

jackmorris-gh commented 9 months ago

Is there an existing issue for this?

Community Note

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

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