Commit Graph

1454 Commits

Author SHA1 Message Date
Clark Boylan fbdd3aa557 Retire this repo
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
2022-02-17 11:47:50 -08:00
OpenDev Sysadmins 382d78c48d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:36 +00:00
Ian Wienand 7d007ac721 Replace openstack.org git:// URLs with https://
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
2019-03-24 20:35:40 +00:00
Paul Belanger 7a9eafd698
Revert "Pin tox to 2.7.0"
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>
2017-09-04 17:44:09 -04:00
Paul Belanger 5fc0bbbdb3
Pin tox to 2.7.0
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>
2017-09-02 15:30:33 -04:00
Colleen Murphy 70840700de Depend on helper gem for spec_helper_acceptance
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
2017-08-18 10:41:43 +02:00
Colleen Murphy e3f67e7941 Use the default jenkins password for JJB
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
2017-06-11 16:42:52 +02:00
Colleen Murphy c476756cd6 Fix SSL in beaker tests
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
2017-06-11 16:41:15 +02:00
Colleen Murphy 3a1e5525fd Remove unnecessary beaker tests
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
2017-06-11 16:10:52 +02:00
Colleen Murphy c7a8d59434 Update beaker setup for xenial hosts
Add a xenial nodeset, and change the spec helper to install puppet 3
from the Ubuntu repos.

Change-Id: I572967a0775c1fb0ff70ae0cc83121d670167e79
2017-06-11 16:06:00 +02:00
Colleen Murphy 8a2ea596b4 Don't overwrite jenkins user authorized keys
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
2017-06-11 16:06:00 +02:00
Colleen Murphy 275e22f63f Make ssh_key parameter optional
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
2017-06-10 20:26:05 +02:00
dongwenjuan 3f2c0a65aa use 'openjdk-8-jre-headless' for ubuntu-16.04
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>
2017-05-03 17:02:18 +08:00
Dirk Mueller b507108750 Add Suse family support to jenkins puppet module
Change-Id: I5cf6481aed0bc6e371fe84e0b9f2d632785304eb
2017-04-06 14:43:48 +02:00
Isaac Beckman 89d89683e3 Customize jenkins.default by template
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
2016-12-05 08:19:54 -06:00
Simon McCartney 5991ee6a62 Enable a specific version of jenkins to be installed
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
2016-11-11 15:11:55 -08:00
Jenkins 6116e612d5 Merge "Update jenkins repo URL + option to select version" 2016-08-12 08:15:36 +00:00
Thiago Paiva d72bb2caeb Update jenkins repo URL + option to select version
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
2016-08-11 10:52:47 -03:00
Jeremy Stanley a2a3faf8a7 Add user.signingkey to .gitconfig
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
2016-07-29 18:39:33 +00:00
Jeremy Stanley b489487781 Make the Gerrit SSH key configurable
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
2016-07-20 20:30:04 +00:00
Jenkins 06471dfde0 Merge "Remove unused GnuPG keyring" 2016-07-01 13:42:18 +00:00
Paul Belanger 868a8ec5c5
Add systemd scripts for cgroups
This is needed for Ubuntu Xenial.

Change-Id: Ibe7d18f10aa48222b8bc08fd6f56cc9cd2790232
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-29 10:14:29 -04:00
Jeremy Stanley fbed50c66f Remove unused GnuPG keyring
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
2016-06-23 18:11:51 +00:00
Spencer Krum a44a41c4a0 Use new infra_spec_helper for gem dependencies
Change-Id: Ia160baba72809ca1c1172e8ff053a8f68abd7a32
2016-06-21 23:52:34 -07:00
Philip Marc Schwartz 6a399aa1ce Upodate pip provider to use openstack_pip provider
Change-Id: I7f70d22cda3d0e174217ce0205b702bf07fb602b
Signed-off-by: Philip Marc Schwartz <philip@progmad.com>
2016-06-16 08:59:43 -04:00
ZhongShengping 8515b90dc0 Fix syntax error
'True' becomes a string in puppet3 and is a syntax error
in puppet4

Change-Id: Ic692bae15e847a2375ba8229f732feb36baa76f9
2016-05-24 11:16:26 +08:00
Artem Silenkov 16ef3f015e Fix incorrect directory permissions in jenkinsuser.pp
Directory .ssh lacks execute permission

Change-Id: I42a6f461c44c031a7f5109579c54faea543fde51
2016-05-12 13:54:12 +03:00
Spencer Krum eba67756e0 Pin google-api-client; sanitize Gemfile
Change-Id: I9a7edbf9462cdf8ff5a5d16add4e2b3828d781ce
2016-04-14 15:19:59 -07:00
Clark Boylan 86589a9860 Don't try to delete master during safe restart
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
2016-04-09 11:21:09 -07:00
Paul Belanger ea7e530fe0 Don't update-java-alternatives on ubuntu-xenial
As we are using openjdk-8-jre by default.

Change-Id: I57e27498fea13276086b1145603220e9244b9bc6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-31 18:43:45 -04:00
Paul Belanger e821923057 Ubuntu xenial supports openjdk-8-jdk
For more information:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1563986

Change-Id: I6cba549fc51a704a57798db15d3ad88dcdc0a4d9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-31 09:53:29 -04:00
Paul Belanger 44b28463f4 Add support for ubuntu xenial
Change-Id: If3693594c2b02c28e47302158e1303176d282a5d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-26 13:48:21 -04:00
Jenkins 52717b6b26 Merge "Use default ruby packages for Xenial" 2016-03-11 11:06:29 +00:00
Jenkins 574e673064 Merge "Increase timeout for yum install of development tools" 2016-03-02 21:13:08 +00:00
Mikhail S Medvedev 20d3c7b309 Use default ruby packages for Xenial
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
2016-02-05 10:07:36 -06:00
Igor Belikov 82b6cefbab Use 'ruby' instead of 'ruby1.9.1' for Debian
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
2016-02-03 16:09:28 +03:00
Yolanda Robla 32d1466741 Increase timeout for yum install of development tools
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
2016-01-29 15:40:34 +01:00
Jenkins 948560241a Merge "Add cli manifest to Jenkins" 2016-01-04 23:55:47 +00:00
Ricardo Carrillo Cruz 121b7b4982 Add cli manifest to Jenkins
This allows to download the Jenkins CLI, it can be handy for scripts
leveraging it instead of python-jenkins

Change-Id: I5e29c46173bce004f649ed58f545fe511262a81a
2015-12-05 08:48:05 +01:00
Jenkins ee6b1a46b5 Merge "Properly setup of jenkins keys" 2015-12-04 19:38:17 +00:00
Jenkins f3146ec98d Merge "Make Jenkins vhost a host-based" 2015-11-30 11:21:12 +00:00
Jenkins 7b229ad86e Merge "Add the ability to set your own plugin url" 2015-11-25 14:49:51 +00:00
Jenkins 2eb4e98612 Merge "Add acceptance tests for puppet-jenkins." 2015-11-23 12:34:52 +00:00
Jenkins bc61fdc06d Merge "Fix race condition in httpd install and config" 2015-11-23 12:28:35 +00:00
Ramy Asselin 62c2056266 Add the ability to set your own plugin url
Using your own url is an equivalent to
Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin option.

Change-Id: Iac6d2cd1b679443f631bf174e5d3322d7574687a
2015-11-20 11:29:42 -08:00
Evgeny Antyshev cfe2a52c1a Make Jenkins vhost a host-based
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
2015-11-19 12:24:07 +00:00
Jenkins 3501262d49 Merge "Populate query_plugins_info setting" 2015-11-15 14:42:14 +00:00
Glauco Oliveira 69131ead86 Add acceptance tests for puppet-jenkins.
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>
2015-11-12 18:24:42 -02:00
Jenkins b5357b1bc1 Merge "Cleanup deprecated exception checking" 2015-11-12 16:27:07 +00:00
Glauco Oliveira 9c6b9c0e1d Fix race condition in httpd install and config
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>
2015-11-11 11:37:34 -02:00