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
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I874e20de34dc6d37d2abad121288b228ca5278db
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>
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.
Change-Id: Icfe2ae1d6379bb55a37be833e974c567595053c5
This module does not create a jenkins user within jenkins, so there is
no way its password could have been set to 'secret'. Trying to use this
as JJB's auth credentials was causing the JJB exec to fail. This patch
grabs the default admin password out of /var and uses that for JJB.
Change-Id: Ifa60398acbc494dcfecd0cabaa8c829590c1744e
The snakeoil package uses the host's fqdn for the cert's CN, which means
trying to use '127.0.0.1' as the JJB URL will fail with an SSL error,
and the curl tests will also fail. JJB also doesn't have --insecure or
--cafle options, so it gets a SSL_CERTIFICATE_VERIFY_FAILED when trying
to run. Use the fqdn everywhere instead of the localhost address, and
add the snakeoil certs to the system's trusted bundle.
Change-Id: Iac97910b0d04eada62dd161341ee246a9cf3ebf8
We don't need beaker to check that every single file and package is
installed. It is safe to assume that if puppet ran successfully then it
was also able to successfully find and install packages and apply config
files. Rather than update the tests to reflect new names of Java
packages on xenial, we can reduce maintenance costs by just removing the
tests.
It's important to keep tests that check that the service is running and
working correctly, because it is possible for puppet to claim success
but for the application to not be working.
Change-Id: Ifd41b858812638191049f415bbdf78c1f3145e46
Our CI has a real jenkins user that needs to be able to SSH to nodes in
order to copy logs, so don't overwrite its authorized keys file. We can
still test everything else about the jenkinsuser class.
Change-Id: I766f9992359a19277eda94f59835a0c9263e540a
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
The master computer can be offline like any other slave but it cannot be
deleted so do not try to delete it.
Change-Id: I5b44f89cf2a8838bf2ea32bd5d7baaffe31f8451
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
Currently, when Apache2 is deciding on which vhost to service the requests,
it first looks for the VirtualHost that has the same IP and port as in the request.
(http://httpd.apache.org/docs/current/vhosts/details.html)
This means, providing "jenkins::master::vhost_name" is resolved on host,
and the host has only one IP address, that all requests match this vhost.
This prevents from hosting Jenkins on CI host together with zuul and logserver.
Change-Id: Idf16c2925ab700107a6fd311e276dc1cdb8ad44d
Add acceptance tests for puppet-jenkins module so that once the module
is applied we check if files were created, packages were installed and
services were started.
Change-Id: Ib69055af29de08902aba8a9e1b12d716584a2e3d
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
Co-Authored-By: Maitê Balhester <mbalhest@thoughtworks.com>
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>