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
This commit is contained in:
Clark Boylan 2020-04-29 10:47:06 -07:00
parent 858dbe1fd8
commit 61c3fded0a
2 changed files with 8 additions and 2 deletions

View File

@ -5,13 +5,19 @@ class mailman(
$multihost = false,
) {
include ::httpd
include httpd
package { 'mailman':
ensure => installed,
}
if ($multihost) {
file { '/srv/mailman':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
file { '/etc/mailman/mm_cfg.py':
ensure => present,
owner => 'root',

View File

@ -35,7 +35,7 @@ define mailman::site (
$default_url_host,
$install_languages = ['en'])
{
include ::httpd
include httpd
$root = "/srv/mailman/${name}"
$dirs = [