21 Commits

Author SHA1 Message Date
James E. Blair
72382b845a 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
4f5192e0a6 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
99d3283dc2 Revert "Make gerrit email server configurable"
This reverts commit 040073e7463a661340aea83da744fe5ebeb40d1f
2013-10-08 22:08:13 +00:00
Monty Taylor
040073e746 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
3dd4e1bf80 Add queue_smtp_domains as a parameter
Brown bag fix

Change-Id: Ia05cc4b356b00e44283200acfbc7e4f9c83c0085
2013-08-01 12:14:17 -07:00
James E. Blair
281c119f28 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
d20d424cac 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
669eb287c9 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
ae3dfe4d95 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
3fef067522 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
22fb5e6da0 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
ee20cbcadb 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
bd74f69d00 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
c567dd5d6f 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
James E. Blair
5dcec26308 Add initial mailman config.
Change-Id: I82cda9eb456c1ce3690eab8f558420c8a696ee25
2012-05-10 19:19:53 +00:00
Monty Taylor
c51538102d Move email addresses of sysadmins to paramater.
When we put these all in by default, then people testing things or people
who aren't even us get the mail on their systems configured to email us.
Change-Id: Ib9d4160e0c81151bf040422c89621bc0fcefcd66
2012-04-08 09:54:29 -07:00
Monty Taylor
a4764467bd Add Devananda to the sysadmin email spam train.
Change-Id: I12af62372dd0115d3b0e7bca1afb564e862a47d2
2012-03-24 15:22:12 -07:00
Andrew Hutchings
5714e9453c Stop paste cronspam
Add Andrew to syslog alias
Add -q to git commit

Fixes bug #929055

Change-Id: I29a4aef4d4839aea3a5014cb9c8ea144b51d1935
2012-02-08 19:33:33 +00:00
James E. Blair
a603c904af Fix exim local delivery.
Change-Id: Iabae34f700cb08b9a9d73af1734ea2164654774f
2011-09-14 15:47:12 -07:00
James E. Blair
70ea88cd03 Fix exim depends.
Handles "Could not perform immediate configuration on 'exim4-daemon-light'".

Change-Id: I49049071af2f5f323ef90485252d825351367522
Reviewed-on: https://review.openstack.org/353
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2011-08-30 19:24:40 +00:00
James E. Blair
8ac4183ad9 Add exim config to all servers.
Add a basic exim config to all OpenStack servers, and send
mail to Jim and Monty.

Change-Id: I8011c839daa24f1ac169782f2de5b14c11b34eee
Reviewed-on: https://review.openstack.org/265
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2011-08-17 20:05:46 +00:00