The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.
Change-Id: Ibd49cc2311b2b3ee10b5d0ec235f9d247dafdc94
Tox 2.8.1 was released fixing out unpack errors.
This reverts commit 5fc0bbbdb3.
Change-Id: I3dc95064b442c26bf7803b46e92ecd5171937a6d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Tox 2.8.0 has broke us, clarkb has a patch upstream to fix. In the
mean time, we can pin to 2.7.0.
https://github.com/tox-dev/tox/issues/595
Change-Id: I1079fb1bc6606a33b5b2517cca0c8eba2c12ce13
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The main reason to do this is for CI. We don't want to overwrite the
real jenkins user's SSH authorized keys, but we still want to test
everything else about the jenkinsuser class, so allow the ssh_key
parameter to be empty and don't overwrite authorized_keys if it is.
Change-Id: Ic2c12940767d53928fa07170c32f34619019287c
Use 'puppet apply' to install jenkins in ubuntu-16.04 failed.
Need to upgrade the 'openjdk-8-jre-headless' package.
See https://github.com/rvm/rvm/issues/3719
Change-Id: If31abd1d29416dbb567c0f76529913b8327d40c1
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Turn jenkins.default to a template. This enables to customize it
easily. This is useful for downstream projects where it is needed
to tune jenkins.default parameters. Either Pass the required
parameter to jenkins class or pass a customized jenkins.default
file location in jenkins_default.
For backward compatibility, default values are set in the class
parameters list.
Change-Id: Ice0e4ffa2fffd041d8bcc4a0b323ffae7ba2b0c8
This is an update to https://review.openstack.org/#/c/354086/ so
that puppet uses the dpkg provider with puppet archive to download & install a
specific version of jenkins if jenkins_version isn't set to latest or
present.
Change-Id: I054b27b045e97c39f0706d110c05459e6b9d74a1
Jenkins repo moved to 'pkg.jenkins.io'. Since that, Jenkins packages were being
get from the default mirror on Ubuntu distros. This patch fixes that and also
adds a parameter to request an specific Jenkins version to be installed.
Change-Id: I43ea562028da8385c9d3bc74794f62d1aa1b9bf8
In an effort to support having an OpenPGP signing key that doesn't
exactly match the name+email in .gitconfig, separately parameterize
the signingkey option allowing it to be explicitly overridden with a
key ID or other similar identifier (such as a matching E-mail
address).
Change-Id: Id577c4479abd2f443f73c630a12e94d3ebe63660
Make it possible to provide an SSH key for the jenkins user on slave
hosts, rather than expecting it to be manually provided. This is
useful for long-lived slaves which need to SSH into Gerrit for
proposing new changes or pushing tags.
Change-Id: Id07bd1e9f08f2d7c7ea6653867d7440a8ade6ee6
This was added by commit de7975c--Gerrit change 7--so old it
predates Change-Id headers in the repo (and, apparently, commit
messages). Today it seems to be completely unused. The pubring.gpg
contained just this one key:
pub 2048R/32EE128C 2010-08-15
uid OpenStack Hudson <hudson@openstack.org>
sub 2048R/92E212FC 2010-08-15
Based on discussion in IRC, Monty vaguely recalls this might have
been related to DEB package building once upon a time (something we
no longer do and wouldn't configure from this module anyway when
eventually want to start doing again).
Change-Id: I70c3b82185681ee64791cda653360c26a93bd466
In I4a5a8352388de46e9e7713fa11951fcde27eaad9 Debian was added as
exception to use default ruby for jenkins::slave. The non-default
ruby1.9.1 also does not exist on Xenial. So add Xenial to the exception
list.
Some alternatives that should be considered:
* Use default ruby packages by default, and add exceptions for distros
where default ruby breaks things. But that can lead to regressions.
* Allow overriding all the default parameters by inheriting from
params.pp, e.g. I8accb1442c6e8a9f1cec5b195d08e96a9b47a9bd. Which would
make it easier to reuse puppet-jenkins outside of OpenStack infra.
Change-Id: Icac1dafc31b6b2c30860bafe09ca631ff00dd0b1
Use 'ruby' instead of 'ruby1.9.1' for Debian, since 'ruby1.9.1' is not
present in Debian starting from Jessie.
This fixes jenkins::slave on Debian hosts.
Change-Id: I4a5a8352388de46e9e7713fa11951fcde27eaad9
This command has proved to take more than puppet default
timeout to install, causing to be aborted and following errors
on puppet installing packages.
Increase to 1800 to give more room for command to be
completed.
Change-Id: I774ec74541797b279b380e0337a6114c80912447
This allows to download the Jenkins CLI, it can be handy for scripts
leveraging it instead of python-jenkins
Change-Id: I5e29c46173bce004f649ed58f545fe511262a81a
Using your own url is an equivalent to
Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin option.
Change-Id: Iac6d2cd1b679443f631bf174e5d3322d7574687a
Replaces httpd_mod with httpd::mod to create a relationship with the
httpd service, and only apply the configurations after the modules have
been installed.
This prevents the server to start with an improper configuration and
break the apply.
Change-Id: I0b72a962adfb125caaad5905774114a971c2e4b9
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
Stop using ssh_authorized_key with a fixed name,
and move key generation to a template. It will accept
an ssh_key parameter, that can accept either an array
or a single string. And it will populate these keys on the
.ssh/authorized_keys properly.
Doing that we allow to rotate keys properly, and avoid
some of the races that could be originated using a
single key using the ssh_authorized_key way.
Change-Id: I572b7a18186329c4277a3f460fc05e6eb30c63b7
Jenkins masters will need a restart after applying this change, or
it will have to be separately pasted into the Script Console.
Change-Id: I427d6e1a72fbe2144f3d9d9306c1cc918730e0cd
For JJB and the safe shutdown script we want to ensure the latest
version of python jenkins. This is necessary to pull in new features and
it is what we test against so makes sense to have installed.
Change-Id: I135faa6eef4b2de6303b49f598d6fc9d44031642
This adds a script that will put the jenkins master in shutdown mode,
wait for all jobs to finish running, then optionally delete any offline
slaves. Once this is complete you can restart the jenkins master in
whatever fashion you choose safely.
Change-Id: I0cb858665de0e733267b5f45b071b076167ee63a
This is specially useful for downstream consumption,
to be able to tune the java settings. It will be very
difficult to move it into a template, so adding the
ability to configure the file source is a good
possibility.
Change-Id: I2cb33fd71f6a1894e6f171dce62e62d504a1693a
There is a setting in jjb to enable/disable jenkins
querying plugins. Set this var on the template, defaulting
to True, that means Jenkins will always query plugins
by default.
Change-Id: Ie39090fce4ec01edde0cc99a35e1e9e1991cac98
Make necessary changes to not get any error from puppet-lint.
Change-Id: I064d03bbc9a8f5023eb6856d8f66c4471669b914
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
This is needed for the puppet-grafana module, so we need to do it here
since all dependencies come from system-config.
Change-Id: I431a41ff40678cf5b86815fcbadf5e3f43e2dbb6
Depends-On: Iaee167602523bc497515a31fdbea74728e94c55d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This feature is useful when using unix authentication system on
jenkins. We rely on this user on the ini template, but manifest
is not creating it. So ensure that this user exists or create if
not.
As jenkins may use another types of authentication, this is
not useful in all cases. So adding a flag to allow to parameterize
it , and not creating the user by default.
Change-Id: I2a007307218a838f90c4df59ea85ad2f23c47175
Other modules like puppet-gerrit default to snakeoil, that's useful
for non-production or testing.
Change-Id: I56b4eab83effb1ff941f5c5c509152ec8bc29234
Use versioncmp, otherwise with puppet 4 (as on Fedora 22) you get "A
String is not comparable to a non String".
We also inverted the versioncmp check for the version variable, the
main reason for this was to reduce complexity of the versioncmp code.
Additionally, defining 0 to be the latest version didn't really make
sense. So, changing it to use 'latest' means better code readability.
Change-Id: Ic8b0fd2a19cbb90e1d57e3025a3d2513ebada2e2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Default these values to '' does provide any real value. We should
force the user to setup something other then an empty string.
Change-Id: I04da6afae5d39a20f9601b0dbd834e97d280d028
Signed-off-by: Paul Belanger <pabelanger@redhat.com>