Commit Graph

25 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
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
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
James E. Blair f7ecbeb03c Template local_domains
Change-Id: Ie6ac9e87b69b93b6e121dad8ceae5fde7931877a
2016-09-21 07:06:26 -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 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
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
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
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
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 1cbba7502c Add initial mailman config.
Change-Id: I82cda9eb456c1ce3690eab8f558420c8a696ee25
2012-05-10 19:19:53 +00:00
Monty Taylor 94c9d8d13d 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
James E. Blair b2943ad902 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 db1a87600f 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