Giter VIP home page Giter VIP logo

Comments (6)

michaelwittig avatar michaelwittig commented on September 27, 2024 1

I'm guessing if I don't pre-change the password worse case scenario I revert to the old password and it works again?
Yes.

m_set_admin_password runs only once because the file /var/lib/jenkins/setup_done.txt is created at the end of the first run of the setup sequence and prevents further runs.

from aws-cf-templates.

Ten0 avatar Ten0 commented on September 27, 2024 1

Oh so that's what test means. Thanks :)
Just noticed that even that query would read from /var/lib/jenkins/secrets/initialAdminPassword so that wouldn't work anyway.

Alright then yeah I guess changing the password first on Jenkins then in the template probably works. :)
Thanks :)

from aws-cf-templates.

Ten0 avatar Ten0 commented on September 27, 2024 1

Manually changing the password then updating the template didn't get the master to restart automatically because it only updated the cfn-init resource, so I had to restart it manually by triggering an "instance refresh".
Other than that it worked fine. :)

from aws-cf-templates.

michaelwittig avatar michaelwittig commented on September 27, 2024

From checking the templates I would suggest you change the admin user password using the Jenkins UI. After that, you update the CloudFormation stack with the new password.

I highly recommend to test the approach with a separate jenkins installation.
You better create a backup before doing so.
This is just working in theory. I never tried it.

from aws-cf-templates.

Ten0 avatar Ten0 commented on September 27, 2024

I'm guessing if I don't pre-change the password worse case scenario I revert to the old password and it works again?
Do you have any insight as to whether the m_set_admin_password script I mentioned above is theoritically supposed to run at every boot or only when provisioning the stack?

from aws-cf-templates.

michaelwittig avatar michaelwittig commented on September 27, 2024

Let us know how it goes :)

from aws-cf-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.