Maybe this is what you are looking for assuming you are using AWS
https://github.com/widdix/aws-cf-templates/blob/master/jenkins/jenkins2-ha-agents.yaml#L1128

On Sun, 1 Sep 2019 at 11:53, Miguel Campos <mcamp...@gmail.com> wrote:

> Hello,
> I have a need of being able to "replicate Jenkins masters" I mean ensure
> that every new Jenkins master I install is exactly the same as the version
> I defined some time ago.
> by exactly the same I mean configuration and versions.
> However I need to have then configured different credentials, and having
> different "secret.key"  so that it if a Jenkins instance is compromised the
> other instances are safe.
>
> To get base version of Jenkins is easy is a matter of getting the right
> jenkins.war.
> the problem shows when dealing with plugins.
> Maintaining a txt with names and versions manually I think is going to be
> to muh work and too complecated to maintain it is a verry long list.
> So my Intention is "clone" my Base instance plugins, so I can use the gui
> tools to perform the upgrades and testing and once I'm ok with that I can
> "clone" the plugins and make a tgz that I can use later to install a fresh
> instance.
>
> I do not know if it's save to Just copy the plugins folder from a running
> instance. (there are also some config fines I do not know if I need those)
>
> So What I tried to do instead is to download all the hpi files for the
> list of files and versions. and make the zip with those.
>
> My problem:
> When starting a fresh install of jenkins using only the jenkins.war and
> the plugins directory containing only all the hpi files for the plugins
> something is wrong with the dependencies.
> I mean for example with the role base auth.  it has a dependency of the
> matrix-auth plugin.
> I have both hpi with the right versions.  but some how when Jenkins boot
> instead of installing all the hpi disregarding dependencies  for the
> plugins.
> instead some how I.ve got installed version 1.1 for the matrix-auth when
> my hpi is the right one.
>
> I would like to understand why is this happening. why if my hpi file is
> for version 2.4 I've got 1.1  installed.
> and if there is a way to control this.
>
> Should I control dependencies and install hpi in order? I guess that will
> be much complicated. (I've seen some scripts doing something like that for
> dockers)
>
> What is the right way of getting a new clear instance of Jenkins master
> that is exactly the same as other? (but clear without credentials projects
> etc etc.
> Thanks.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c64d6ac6-5d88-4309-af5b-a0bd96df5840%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c64d6ac6-5d88-4309-af5b-a0bd96df5840%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
c in ",adym,*)&uzq^zqf" ] )

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKgQ7UJHGyfZ8Fekh34Nb%2BW0s3Svnyav2nYVGEvKurVWZ4AvKQ%40mail.gmail.com.

Reply via email to