puppet/modules/mailman3.git
9 years agoAdded database management 58/158/4
Josh Farwell [Tue, 16 Jun 2015 22:35:19 +0000 (15:35 -0700)]
Added database management

Core::config now parses the config file information for database
settings. If postgres, exports a resource for creating a postgres
database. TODO: if sqlite, it will verify that the mailman3 user can
write to the database directory. If mysql, fails, as it is not
officially supported by the project at this time.

Change-Id: Ie91cc0ff612e382967b5b3f1661bd301c5143077
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoAdded automatic firewall configuation 38/138/2
Josh Farwell [Wed, 10 Jun 2015 00:47:26 +0000 (17:47 -0700)]
Added automatic firewall configuation

Added puppetlabs/firewall as an optional dependency, ::core::config now
calls a subclass that parses the config file values for relevant
information and creates firewall rules based on the config. Since
the program's default settings bind all services to 127.0.0.1, by
default it does nothing. Opens ports to all addresses by default
if non-localhost address is specified, takes an options hash that
defines allowed_hosts.

Change-Id: If9122950ae218ca2b1cf3bbb96997b3c9ad2818a
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoConfigured core service 24/124/4
Josh Farwell [Tue, 9 Jun 2015 01:39:55 +0000 (18:39 -0700)]
Configured core service

Added ::core::config, which creates an ini file for the mailman service
from a template and an options hash. Defined the default mailman.cfg file
in params. Refactored the rest of the core submodule to refer to the
service as "core" instead of "mailman" to avoid confusion.

Change-Id: Ide760844152e946020a95e4cd771c1c6e3fc4507
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoRestructured installation into submodules 93/93/2
Josh Farwell [Thu, 4 Jun 2015 04:03:06 +0000 (21:03 -0700)]
Restructured installation into submodules

Because we are managing three separate applications which can be on
separate systems, splitting into submodules with shared paramaters and
other classes makes sense. Init.pp now throws an error if called
directly. Moved existing installation logic to mailman::core, which
handles the core service. Split yum repo resource into its own class
which is called by ::core and will be called by the other applications.

Also cleaned up unneeded mailman service user parameter; these are not
needed, the user is installed by the package and managed via the systemd
service. Created parameter for site_owner email address.

Fixed rspec tests; there is a known issue with using .merge!() on
options hashes. Changed semantics for confirming the absence of an
object on core__install_spec.rb (only looking for raise_error if we have
a specific message we want, otherwise using is_expected.to_not)

Change-Id: I60ef5e897d66574ee73be2768985b8915aa8d02f
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoYumrepo bug fix and added "require" for package 88/88/3
Josh Farwell [Wed, 3 Jun 2015 19:35:29 +0000 (12:35 -0700)]
Yumrepo bug fix and added "require" for package

Yumrepo statement was creating a file without "name" defined, fixed.
Added "require" statement for the mailman3 package to prevent yum
errors as a result of not having the repo installed, updated rspec
tests. Fixed formatting.

Change-Id: I38cb0787bdda4a5d99f5d6cda2d9c107429eb243
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoStarted building initial structure for module. 60/60/2
Josh Farwell [Fri, 29 May 2015 09:39:04 +0000 (02:39 -0700)]
Started building initial structure for module.
Created init.pp and params.pp, started building installation
functionality.

Added puppet-rpsec tests.

Change-Id: Ife33ead1b2e1b04c8a04576b951677ee3b06634e
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoAdd .gitreview for mailman3 35/35/1
Andrew Grimberg [Fri, 22 May 2015 00:09:22 +0000 (17:09 -0700)]
Add .gitreview for mailman3

Add a .gitreview file for mailman3

Change-Id: Id28c7a578a6dec0e464025175809a4c67c3f5b59
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
9 years agoinitial boilerplate
Josh Farwell [Thu, 21 May 2015 23:23:21 +0000 (16:23 -0700)]
initial boilerplate

Change-Id: Idfcced7a981bc1542ee2f3de49ae9a8ebc862541
Signed-off-by: Josh Farwell <jfarwell@linuxfoundation.org>
9 years agoInitial empty repository
Andrew Grimberg [Thu, 21 May 2015 22:04:05 +0000 (22:04 +0000)]
Initial empty repository