You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure how feasible it is, but in my user case, I struggled a bit to change the starting admin password, as I did not want to leave it as admin:admin
#!/bin/bash# this script creates random passwords# and updates the .env file# create a new environment file# random password for Database connection
RANDOMPASSWORD=`date +%s | sha256sum | base64 | head -c 32`
ADMINPASSWORD='changeme'
CODEPASSWORD='changeme'# the hostname which we can use in order to access rundeck# from the outside.# we set this to the hostname of the docker host
GRAILS_HOST_NAME=`hostname`
(cat >.env) <<EOF# a random password for database connectionRUNDECK_DATABASE_USERNAME=rundeckRUNDECK_DATABASE_PASSWORD=$RANDOMPASSWORDRUNDECK_DATABASE_DRIVER=org.mariadb.jdbc.DriverRUNDECK_GRAILS_URL=http://${GRAILS_HOST_NAME}:4440RUNDECK_DATABASE_URL=jdbc:mysql://mariadb/rundeck?autoReconnect=true&useSSL=falseMARIADB_DATABASE=rundeckMYSQL_DATABASE=rundeckMARIADB_RANDOM_ROOT_PASSWORD=yesMYSQL_RANDOM_ROOT_PASSWORD=yes#MARIADB_MYSQL_LOCALHOST_USER=rundeck#MARIADB_MYSQL_LOCALHOST_GRANTS=allMARIADB_USER=rundeckMARIADB_PASSWORD=$RANDOMPASSWORDMYSQL_USER=rundeckMYSQL_PASSWORD=$RANDOMPASSWORDVSCODE_PASSWORD=$CODEPASSWORDEOF# set starter admin password - https://groups.google.com/g/rundeck-discuss/c/sya3vljcsco/m/_ZN71uJKAQAJ
(cat >realm.properties) <<EOF## This file defines users passwords and roles for a HashUserRealm## The format is# <username>: <password>[,<rolename> ...]## Passwords may be clear text, obfuscated or checksummed. The class# org.mortbay.util.Password should be used to generate obfuscated# passwords or password checksums## This sets the temporary user accounts for the Rundeck app#admin:$ADMINPASSWORD,user,adminuser:user,user## example users matching the example aclpolicy template roles##project-admin:admin,user,project_admin#job-runner:admin,user,job_runner#job-writer:admin,user,job_writer#job-reader:admin,user,job_reader#job-viewer:admin,user,job_viewerEOF
RANDOMPASSWORD="nothing here"
I am not sure how feasible it is, but in my user case, I struggled a bit to change the starting admin password, as I did not want to leave it as
admin:admin
I did what it described here - well, sort of...
I modified the
pre-install.sh
:and I added this to the Dockerfile:
Perhaps it is just me fancying this, and I am sure there is a better way to implement it - but it worked, so...
The text was updated successfully, but these errors were encountered: