Is that possible to install a nexus chart with a given initial password?

I want to setup my environment by an automatic script. For the nexus, I don’t know how to give to a specific password instead of a random one. Any tips are very appreciated.

If you set this in sonatype-work/nexus3/etc/nexus.properties a random password will not be used, the old default password of “admin123” will be used instead:

nexus.security.randompassword=false
1 Like

Thanks for your quick response! I’ll try it.

I found another way to do that. It might be a trick way. But it works. Give it a environment variable NEXUS_SECURITY_RANDOMPASSWORD which value is false.

See also nexus-public/StaticSecurityConfigurationSource.groovy at 26aa3a2b54ffe524a5e7df164d847e268b624d21 · sonatype/nexus-public · GitHub.