Commit Graph

57 Commits

Author SHA1 Message Date
Monty Taylor 852c94ab73 Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: I1ad1d98f366e28b1321d6d6c5c8a60073ffde1ef
2020-04-22 10:18:56 -05:00
OpenDev Sysadmins 08bab904aa 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:26:09 +00:00
Ian Wienand 38c893fe86 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: I6e3a2df384bd3b0a0106a0971cd1a74c396b8dff
2019-03-24 20:35:38 +00:00
Colleen Murphy 804157d7a5 Update Gemfile for Zuulv3
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.

Change-Id: I673fc19ab3d254c3a58b7a250d0877aac4838f71
2018-07-12 09:57:44 +02:00
Jeremy Stanley 58310c46cd Make localuser router optional
Under some circumstances it can be useful to not include the default
"localuser" Exim router. Make it optional via a
default_localuser_router class parameter which defaults to true,
preserving backward compatibility.

Change-Id: Iae38041c95bc0bbcd1dfd3d0c5c626b63acd7922
2018-06-25 18:12:21 +00:00
Jeremy Stanley 139fddd195 Make /etc/aliases extensible
In an effort to support customizing E-mail aliases per server, allow
a hash of aliases to be passed into the /etc/aliases template. While
we're here, remove the custom gerrit2 and jenkins aliases since
those can now be set individually on servers where they actually
matter rather than unnecessarily setting them everywhere.

Change-Id: I2911f157812c127a514196ae58b7609378d7d4e4
2017-12-22 17:51:39 +00:00
Zuul 8ea888e15e Merge "Move user-supplied routers to the end" 2017-12-19 21:17:10 +00:00
James E. Blair 664c8806e7 Set keep_environment to empty to silence warning
Change-Id: I91d511a6932669fa1b014d4a26bc3ae8f470395b
2017-12-12 13:35:09 -08:00
James E. Blair 153a21cda8 Move user-supplied routers to the end
We want Mailman routers to be last, and they are, but I'd like to
replace the built-in ones in this module with user-supplied routers
instead, so move the user-supplied routers to the end.

Change-Id: I090070308785d4b55bac12806a05e2896306c0a3
Story: 2001382
Task: 6091
2017-12-12 21:26:53 +00:00
Zuul 099455fd6b Merge "Process mailman addresses last" 2017-11-20 21:15:37 +00:00
Jeremy Stanley 9fa2bd4853 Process mailman addresses last
In an effort to thwart recent spates of spam to -owner addresses of
mailing lists, place the mailman_router last so that system_aliases
get expanded before it. This allows for tricks like aliasing a
particular -owner address to :blackhole: temporarily as a
workaround.

Change-Id: Ibea05369bb5e42bf637f84251a387ffd81577373
2017-09-21 14:40:34 +00:00
Colleen Murphy fec74d203f 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: Ic60a4664b47f1f3d37e3dc8831ef620aa128db0a
2017-08-20 23:07:30 +02:00
Jeremy Stanley 5a09f46999 Add smtp_accept_max and smtp_accept_max_per_host
Allow callers to optionally set smtp_accept_max and
smtp_accept_max_per_host options for tuning systems to handle higher
connection volumes.

Also fix the config template's conditional for queue_smtp_domains
since it defaults to undef but was previously checked against ""
instead.

Change-Id: I5519f6c28c81a6f40c78551ac318b91cacfc04fb
2017-07-26 17:52:09 +00:00
Paul Belanger 4f1c9531bc
Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.

Change-Id: I88b77c8c34163bc11dbcb823dc1b57b0340f3193
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 21:08:00 -04:00
James E. Blair 60615d96d3 Fix local_domains domain list
The newline on the local_domains list was being trimmed causing it
to be combined with the next line.

Change-Id: I1a4798b7ce8ecdd1a45945b97455dc4ef0c01702
2017-01-26 12:13:10 -08:00
James E. Blair f7ecbeb03c Template local_domains
Change-Id: Ie6ac9e87b69b93b6e121dad8ceae5fde7931877a
2016-09-21 07:06:26 -07:00
Spencer Krum 1cc47e04d0 Use new infra_spec_helper for gem dependencies
Change-Id: Ief48712263b732b82915f38c5abf2ebb6fb7e920
2016-06-21 18:38:11 -07:00
Spencer Krum b04f99759a Pin google-api-client; sanitize Gemfile
Change-Id: I42a7b4f1aa2b942d467f59bf170b2a3599923c34
2016-04-14 15:18:39 -07:00
Andrey Nikitin 4910a92977 Order of the class parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I5df9f22616afcc9b460334d0a74a7e54973297e9
2016-03-21 11:49:10 +03:00
James E. Blair db92dec3f2 Add some whitespace between routers/transports
Change-Id: Id6e2b06b85873ea087f6c7c0b49be12006c69304
2016-03-10 15:50:54 -08:00
James E. Blair ae24f6250d Always specify driver first
In general the options for routers and transports are not sensitive
to order, except that private options for drivers must succeed the
driver option.  Therefore, it is customary to put the driver option
first.

To ensure this, we special case the driver option in the template
expansion.

Also, for the remaining options, put them in sorted order so that
the config files do not needlessly change on puppet runs.

Change-Id: Id5c21aeaede4b5d780403b00eeac4f2947d36ffe
2016-03-10 15:20:24 -08:00
James E. Blair 86b5780533 Add documentation for exim routers/transports
Change-Id: I2daeacf58d9f7cd3de2bfc42db6b682c7d41aa4a
2016-03-09 08:04:56 -08:00
James E. Blair 11f9d34a2a Accept configurable routers/transports
Allow complete definitions of routers and transports to be provided
to the exim class which will then be added to the exim4.conf file.

Change-Id: Id4f69580eb126d058ee699f4e7bfdb01cfc7409c
2016-01-20 09:23:28 -08:00
Spencer Krum 93ed59ce0e Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I1a3179befebcc28f95a86b7c70745e5a7e9f12cd
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:35:27 -07:00
Jenkins 025d36e680 Merge "Add Gemfile and puppet 4 checks" 2015-08-10 00:02:33 +00:00
Spencer Krum 105b944980 Boilerplate beaker-rspec files
Change-Id: I544b2a4e6c9493109df80d676d325aa2fe61c398
2015-07-28 02:04:16 -07:00
Paul Belanger 37727e4b45 Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: Id272e95c5f93e07b5ab7791badc635eb066c6763
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-22 10:05:30 -04:00
Jeremy Stanley 6026961606 Replace ci.o.o links with docs.o.o/infra
The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.

Change-Id: Ie6f1879f5a48db22b55fcbead03f7ceeb4372e59
2015-05-14 21:38:17 +00:00
Ramy Asselin 787b7b4a1f Rename openstackci to openstackinfra
Change-Id: Icc277fe94db3adcebf5144157e2adaf9b706042a
2015-04-20 13:43:44 -07:00
Jeremy Stanley 68138fe348 Add missing LICENSE file
The content of this project is Apache 2 licensed, but we should
include a standard LICENSE file just to be clear about that.

Change-Id: Iee6320b9d7e35fbe8d3b0a9794f3e485c18ef2c8
2015-01-29 22:57:05 +00:00
Jonathan Harker dc5a4a512a Add new module boilerplate
Add boilerplate files to this module now that it is in its own project.

Change-Id: I1668e79877ed86441cfe378e037de32d0311c3f1
2015-01-28 17:25:15 -05:00
Spencer Krum 54e5c1268e Fix deprecation warnings in exim module
Change-Id: I432c6f664d13c32daac0e22b0aee55b511de5c5d
2014-08-25 16:04:06 -07:00
Jenkins 46188fea70 Merge "Align exim module parameter name with the tree" 2014-07-05 21:31:02 +00:00
James E. Blair 23af99de14 Revert "Fixing deprecation warnings"
This reverts commit 82b9b59522928863ddadeacfec819e287303ef20.

Change-Id: I746d7ae57802dc76618db9024a0cf94c43774c02
2014-07-02 17:35:02 +00:00
Spencer Krum 8cc1ef6a90 Fixing deprecation warnings
Non instance variable representation is deprecated
so needs to be changed. This change changes varibles
to their instance variable representation.

See more details see:
http://docs.puppetlabs.com/guides/templating.html

Change-Id: Ib77827e01011ef6c0380c9ec7a9d147eafd8ce2f
2014-06-19 22:41:42 -07:00
Monty Taylor c45f179da0 Align exim module parameter name with the tree
The rest of the tree, literally everwhere, calls this value
sysadmins - but the exim module calls it sysadmin. This doesn't
really matter of course, but I noticed it while looking in to a
review on another patch and couldn't not fix it. Also, there are
two comments that are clearly remnants from having used exim.pp
as a starting point.

Change-Id: I184701c8c4d4b1e9d93d746b2ad0c5fc53443866
2014-06-14 08:10:10 -07:00
James E. Blair 776945346f Only allow mail from jenkins from zuul
If someone copies the production Zuul configuration, they may end
up sending emails as jenkins@o.o.  Configure our hosts to only
accept email with an envelope sender or From header of jenkins@.o.o
if the connecting host is zuul.openstack.org (or localhost, to handle
the case of exim running on zuul.o.o itself).

Change-Id: Ic92bb39659689347fea1744ee8c1b47ef21858b0
2014-02-12 13:16:15 -08:00
Monty Taylor 0e2b4654aa Un-Revert "Make gerrit email server configurable"
This time, make the default value false instead of empty string.

This reverts commit 99d3283dc246da4b4d2d26ecfb193b308881f05d

Change-Id: I88108ff75f1c2bd3aa78856c186312340258ec3c
2013-10-12 17:10:03 +00:00
James E. Blair 1b1278ddfc Revert "Make gerrit email server configurable"
This reverts commit 040073e7463a661340aea83da744fe5ebeb40d1f
2013-10-08 22:08:13 +00:00
Monty Taylor 6e7a877ef4 Make gerrit email server configurable
Sometimes people need to send mail through a smarthost. Allow that.

Change-Id: I66ff43a3ca4fce63500755d16be3aa891d55bc75
2013-10-06 15:05:20 -04:00
James E. Blair d1add0e652 Add queue_smtp_domains as a parameter
Brown bag fix

Change-Id: Ia05cc4b356b00e44283200acfbc7e4f9c83c0085
2013-08-01 12:14:17 -07:00
James E. Blair c08567bf1b Further tuning of lists
Up to 50 simultaneous queue runners
Run queues every minute

Also adds queue_smtp_domains as a parameter (unused currently).

Change-Id: I7d93131278e5d8677445e3230f68b2a81313246a
2013-07-31 17:24:14 -07:00
James E. Blair 5a7ebc56b5 Add queue runner interval option to exim
Set it to default to 30m (the Debian default).

Set it to 5m on lists.o.o.

Change-Id: Iab817ae93a9e9655abf41713f70048870652a635
2013-07-30 15:37:56 -07:00
Jeremy Stanley ff7a805332 The facter osfamily of Ubuntu is Debian.
Clean up facter osfamily matches to just use Debian, not Ubuntu.
This is manually tested and confirmed to at least be the case on
Oneiric, Precise and Quantal.

Change-Id: I27b184ac419910f9c3271c3b4e57886333282a5f
Reviewed-on: https://review.openstack.org/27399
Reviewed-by: Spencer Krum <krum.spencer@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-25 21:37:00 +00:00
Jeremy Stanley bc9432c249 Jenkins slave puppetry for CentOS.
The install scripts now look for CentOS in release files. Also some
instances of facter's operatingsystem are switched to osfamily and
capitalization of RedHat is normalized to match what facter uses.

Change-Id: I3bbca5481d0d5e6de9e62bfd6e2b0a85264ed6ed
Reviewed-on: https://review.openstack.org/27398
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-25 21:36:58 +00:00
Dan Prince 7d95685616 Update exim module to install package before file.
Add some requires to the module so that we ensure the
exim package is installed before configuring the etc config
file and starting the service.

Change-Id: I5c464a9b8b6ecbdea7af3a4b9bdf344f3a40c0db
Reviewed-on: https://review.openstack.org/23552
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-03-05 14:43:17 +00:00
Dan Prince 0f25d1ed6a Update exim module to work on RHEL.
Parameterizes the exim module so that it can support multiple
distributions.

As part of this patch I also removed the explicit install
of exim4-base and exim4-config on Ubuntu. Just installing
exim4-daemon-light should be fine.

Change-Id: Ie09c5fa01509ebfadc92b8540f04181a2b13b667
Reviewed-on: https://review.openstack.org/23289
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-04 18:00:04 +00:00
James E. Blair 1a24fbbcc1 Don't attempt to deliver to gmail over v6.
Change-Id: I7b5998f50d22e103981b04706060f5127a256123
Reviewed-on: https://review.openstack.org/14506
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-10-17 20:22:23 +00:00
Paul Belanger 41866eaaa2 Style Guide updates for puppet-lint
More fixes in preparation for our gate-ci-puppet-lint job.

Change-Id: I1cd3499e6cd958fbbacd01f3daef581a7b4d3217
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/13764
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-09-28 21:24:49 +00:00
James E. Blair a3bc279899 Include mailman domains in local domains.
The local hostname is included in local_domains by default,
but in case we're hosting mailman domains other than the local
hostname, include them.

Change-Id: I733b8fe8cacc2cfd2d7a0d33236ed9e2273c15da
2012-05-22 13:01:01 -07:00