Restructured installation into submodules 93/93/2
authorJosh Farwell <jfarwell@linuxfoundation.org>
Thu, 4 Jun 2015 04:03:06 +0000 (21:03 -0700)
committerJosh Farwell <jfarwell@linuxfoundation.org>
Thu, 4 Jun 2015 06:25:08 +0000 (23:25 -0700)
commit186c60dd2eb10e6cd92298b35078014ca00f2f59
tree832f61dbc7364f1710f363b7deb54f683850ab46
parent7e43d68c67c6c8f3f420e7a4e08fc50950a55625
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>
manifests/core.pp [new file with mode: 0644]
manifests/core/install.pp [new file with mode: 0644]
manifests/init.pp
manifests/params.pp
manifests/repo.pp [moved from manifests/install.pp with 68% similarity]
spec/classes/core__install_spec.rb [new file with mode: 0644]
spec/classes/core_spec.rb [new file with mode: 0644]
spec/classes/init_spec.rb
spec/classes/install_spec.rb [deleted file]
spec/classes/repo_spec.rb [new file with mode: 0644]