Commit Graph

56 Commits

Author SHA1 Message Date
Clark Boylan 4e287e1a3c 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: Iead8de30a8606e69787056be11a2e89bd63639ea
2022-02-17 11:53:50 -08:00
Clark Boylan 61c3fded0a Create /srv/mailman
The multihost setup mailman setup assumes /srv/mailman is present which
then causes failures in testing because we don't explicitly create this
path. Fix that by managing the /srv/mailman path in puppet too.

Change-Id: Ia378b098b672e471897c8397f2562fc21a327f38
2020-04-29 11:03:14 -07:00
OpenDev Sysadmins 858dbe1fd8 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:08 +00:00
Ian Wienand 25bb3a5ed1 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: I3011bb0d15304994dd3c732fa948ff63e2a8ccd7
2019-03-24 20:35:40 +00:00
James E. Blair 26be785a8f Remove AvoidDuplicates from mailman pipeline
This prevents mailman from altering the CC header, at the expense
of causing some users to receive duplicate messages.

Hopefully they have MTA or MUAs which can suppress duplicates based
on Message-ID.

Change-Id: I8dcb071d977d45f1ed8e0793c35d0f6f312a7ba8
2019-02-05 16:04:25 -08:00
Colleen Murphy 1a8c4b9e6a Add beaker tests for custom providers
Add tests to ensure the mailman_list and maillist providers work as
expected.

Change-Id: I7b54a364f55bde50390fef5eb017576285e59458
2018-09-11 23:19:00 +02:00
Zuul 268b57554d Merge "Use httpd::vhost $content parameter" 2018-07-20 18:15:49 +00:00
Zuul fc181cf346 Merge "Add beaker tests" 2018-07-20 18:06:11 +00:00
Colleen Murphy fa60bbc85a 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: I5dffef20f15f664d488f7ff9882d0be713b6755a
2018-07-12 09:57:45 +02:00
Colleen Murphy 019af0637a Use httpd::vhost $content parameter
Use the new $content parameter of httpd::vhost instead of $template.
This way, the template gets rendered within the scope where it assumes
its variables are, and doesn't need to use the scope object which
doesn't work within a defined type. This will ensure the template keeps
working on puppet 4.

Depends-On: https://review.openstack.org/570824
Change-Id: Iaa31189ace6140327af034fd8209211077d7c552
2018-05-28 15:39:49 -07:00
Colleen Murphy caf7b56fa4 Add beaker tests
Add functional tests to verify that the mailman functionality, both
single host and multihost, works correctly and generates the expected
virtualhost config.

Change-Id: Ie3f23cf918f3575e0403626d94a8a0f1f68ae831
2018-05-28 15:39:26 -07:00
James E. Blair af11a96f78 Exit 0 if MAILMAN_SITE_DIR is not set
This variable is required for the multihost hack to work, but the
dpkg scripts don't know about it.  Just exit 0 if it's not set
(but still provide a message for admins) so that the dpkg scripts
don't bomb.

Change-Id: Ib5d806794d62c089f4267f7b5e4cee6e6702c5ff
2018-05-04 15:01:37 -07:00
James E. Blair 74aabb8bbb Remove openstack HTML templates
These are no longer necessary, they are in the openstack
system-config repo now.

Change-Id: I7d6c1cee86f9849aa3291f5e73fa0927c39f12ac
2018-01-23 16:07:50 -08:00
James E. Blair b0088677cd Use multisite template dir
Start using the new template directory in multisite installations.

Depends-On: https://review.openstack.org/535851
Change-Id: I471509355576f2a8ed1bea04782388281958a4cc
2018-01-23 16:07:46 -08:00
James E. Blair 3f8567fc9c Create per-site template directories
Install user-specified languages there.  English by default.

This is not used yet; it will be enabled in a later change.

Change-Id: I1d3b0f1a96ade33b0d72accf3a7c8449e79b6c5f
2018-01-22 11:34:48 -08:00
James E. Blair 00d2dbbc6c Export MAILMAN_SITE_DIR in init script
This is necessary for list_lists to use it in a subshell.

Change-Id: Icea86b11eabd4cb336989836065a4cec7570e9db
2017-12-22 15:12:07 -08:00
James E. Blair 7d47b9ea1a Fix multisite archive paths
Change-Id: I27fa37f0f1e39a8b7aaa3206727b916f8a33a7fb
2017-12-22 15:08:33 -08:00
Clark Boylan 871e86687f Alias $name in mailman site for vhost templating
The apache vhost templating is evaluated within the context of an inner
puppet defined resource which overrides the $name value with its own
$name. This means if we want to pass the $name of the outer mailman site
defined resources we need to give it another non overridden name.

In this case we alias $mailman_site_name to $name and use that.

Change-Id: I22e7285161deb7e7945559e0b7a421d244ab1b7a
2017-12-22 15:07:03 -08:00
James E. Blair 0778735e66 Add multi-site support
This adds optional support for creating multiple sites which
appear as independent mailman installations, though they all
rely on the underlying operating-system provided install.

Story: 2001382
Task: 6091
Depends-On: Ic92726dc341af5802ad803d239bd547ef5068043
Change-Id: I3a31465882ec95d822d590045216ec751c7cd22e
2017-12-13 13:49:57 -08:00
Jeremy Stanley 2704eca15a Enable modules before starting Apache
If Puppet decides to order resources in such a way that Apache is
started before the modules the vhost is configured to utilize are
enabled, the service will fail complaining of a syntax error/missing
module. Set Apache's modules to instead be enabled before Apache is
started to avoid this failure scenario.

Change-Id: Ida3e963d9044bbb5e0ec4c9e465a104e7d97fa2b
2017-12-01 20:09:33 +00:00
Colleen Murphy fde5fe0d62 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: I68cdeb2cb5973f65d375ee4d417cbb1c544eddbf
2017-08-18 10:41:44 +02:00
Andreas Jaeger ed005ced16 Use https for links
Use https for links where possible.

Change-Id: I38bd481f977a6c6432a27cf50d33081928f1a45e
2017-08-04 20:47:43 +02:00
Andreas Jaeger 628c715694 Good Bye Diablo: Update pages with footer
Replace link to non-existing Diablo page with link to current Getting
Started Page.
Sync footer links with docs.o.o and www.o.o pages.
for changed pages: Use https where possible.

Change-Id: I6de65c872c0384a0d7325270758fc36ff71ca201
2017-08-04 20:47:32 +02:00
Colleen Murphy aef82d5fe4 Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: If6496f0f3b3c5a220937dc4a2aef266a27805b35
2017-06-24 15:55:27 +02:00
Spencer Krum 66dc9744ad Use new infra_spec_helper for gem dependencies
Change-Id: I3ef9b5c8ef8f153e2f5ffb53e4ba8730b08ef892
2016-06-21 18:39:04 -07:00
Spencer Krum a4093df808 Pin google-api-client; sanitize Gemfile
Change-Id: I0df9b244f7bbdab966777a3cb4f72acfd1edfbed
2016-04-14 15:20:49 -07:00
Jenkins dc2b6ac36f Merge "Add missing cgid module" 2016-04-12 19:05:52 +00:00
Jenkins da36df247f Merge "Add apache 2.4 support" 2016-04-12 18:52:48 +00:00
Andrey Nikitin 66fa0e6ff6 Placement of the class parameter is refactored
Placement of the parameter is changed
to follow Puppet Style Guide recommendation [0].

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

Change-Id: Id0b1c3c0472c3455075e4e60535e7588a39d960a
2016-03-21 13:15:25 +03:00
Paul Belanger 9c2524b1d8 Add missing cgid module
This was exposed when installing on trusty.

Change-Id: Ic0cc4de17f0490c54293bbe37190654976ff7b57
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-25 15:37:28 -05:00
Paul Belanger 019bb0c560 Add apache 2.4 support
Change-Id: Ibe002356d01f21fdaefbe206c01a766e7ee80b59
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-25 15:26:27 -05:00
Jenkins 2e27d37050 Merge "Add non-alias-modifying mailman provider" 2015-11-13 13:13:45 +00:00
Spencer Krum 093a8a4c75 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I6f0dbd6c23f3c758dc797f2322601a0fbb7b197c
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:39:39 -07:00
Colleen Murphy c363f8b30a 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: I8eca4f96adeb25e64c60be4c9813502010254a24
2015-08-04 13:25:23 -07:00
Spencer Krum 4719e34888 Boilerplate beaker-rspec files
Change-Id: I11b7b33335337990bb5a5c74702d2ec9876491e3
2015-07-28 02:04:58 -07:00
Jenkins f8b6caf0bc Merge "Migrate to puppet-httpd module" 2015-07-22 17:23:07 +00:00
Paul Belanger bde4c75a0f Migrate to puppet-httpd module
puppet-httpd is the openstack-infra version of puppetlabs-apache
(0.0.4) release.

This patchset will remove the puppetlabs-apache namespace from -infra
allowing for possible future patchsets to use newer puppetlabs-apache
modules.

Change-Id: I9ea679048ca764389dbe01581ee35aadcbe6014b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-16 15:42:08 -04:00
Paul Belanger d034bfe8ff Fix variable access warnings
Change-Id: Ie41a38877145e6583d012d305d930b64a4d147b5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-09 16:54:20 -04:00
Jeremy Stanley f7bc3034a8 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: Id3b6e7b33f912623675eb571efdad0f7cc523cef
2015-05-14 21:38:18 +00:00
Monty Taylor 4980d72792 Add non-alias-modifying mailman provider
The maillist type in puppet has pluggable providers. The default mailman
one assumes that clearly you want a ton of entries in /etc/aliases.
Since we do not want a ton of entries in /etc/aliases, subclass that
provider and override the bits that make us sad.

Change-Id: I86bcbe2665dfa18d766a03a60263a37088a53b5c
2015-04-28 20:36:36 -04:00
Ramy Asselin 331b9a2e24 Rename openstackci to openstackinfra
Change-Id: I453644abadfac4e8cf413f77acebb48d8f322ebc
2015-04-20 13:45:19 -07:00
Jeremy Stanley 82ee7866a8 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:58:31 +00:00
Ramy Asselin 58ff68fe98 Add initial puppet module files
Change-Id: I9b3fef352759b0cbb4734aa19b44e8b90659007f
2015-01-29 10:34:10 -08:00
K Jonathan Harker 5903d53bfd Use the correct name for apache
The name of the apache package and service are different on different
operating systems. Fortunately, the apache module populates a variable
with the correct name for us. This is also true of the apache ssl
package.

Change-Id: I7d93e56281f828cba9262c135b0beb43dce9748a
2014-06-04 17:33:50 -07:00
Jesse Keating a6a1182923 Default to admin viewable mailman membership
Change-Id: I0734d37ce65d817208c3b8a37e9b322d235ae8e1
Fixes: bug #1021493
Reviewed-on: https://review.openstack.org/28224
Reviewed-by: Rainya Mosher <rainya.mosher@rackspace.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Stefano Maffulli <stefano@openstack.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-05-06 18:13:53 +00:00
Matthew Wagoner 650b43b654 Cleanup mailman manifest init.pp lint errors.
Change-Id: I387b377d65fbbe49581fa85a371d214ad60e4552
Reviewed-on: https://review.openstack.org/14908
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-10-29 18:35:40 +00:00
Monty Taylor cf23cf26f3 Clean up post-apache move carnage.
Change-Id: Ieeb8469126d64df75e7fa0fff67618daa6990674
Reviewed-on: https://review.openstack.org/11246
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-12 17:49:33 +00:00
Monty Taylor 3850c54837 Align all web server usage on apache module.
Change-Id: Idd712a8ee5ec81c6b88b7d3e2270dce4da254927
Reviewed-on: https://review.openstack.org/10838
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-12 17:03:46 +00:00
James E. Blair 014b40f2f2 Add redirect for lists.o.o.
And add rewrite module.

Change-Id: I87e922c7454dd281baced2293973e7c1ca2faaef
2012-07-05 12:14:36 -07:00
James E. Blair e126257f7e Mailman service has no status command.
Change-Id: Id86e0bde4ce658792095925fbc9b0daa29032e20
2012-07-05 11:51:27 -07:00