Create mailman server for Kata Containers

Until we have a way to manage multiple domains on a single mailman
instance, we need to have separate instances. This creates
lists.katacontainers.io to run mailman for this new project that
needs a separate domain from lists.openstack.org.

Change-Id: Iafcf10c2c905439bf174e886a8886e090a256711
This commit is contained in:
Jonathan Bryce 2017-11-30 14:14:59 -06:00
parent 87644f4369
commit 309b866af7
3 changed files with 60 additions and 0 deletions

View File

@ -307,6 +307,20 @@ node 'lists.openstack.org' {
}
}
# Node-OS: trusty
node 'lists.katacontainers.io' {
class { 'openstack_project::server':
iptables_public_tcp_ports => [25, 80, 465],
manage_exim => false,
purge_apt_sources => false,
}
class { 'openstack_project::kata_lists':
listadmins => hiera('listadmins', []),
listpassword => hiera('listpassword'),
}
}
# Node-OS: trusty
node 'paste.openstack.org' {
class { 'openstack_project::server':

View File

@ -0,0 +1,38 @@
# == Class: openstack_project::kata_lists
#
class openstack_project::kata_lists(
$listadmins,
$listpassword = ''
) {
$listdomain = 'lists.katacontainers.io'
class { 'exim':
sysadmins => $listadmins,
queue_interval => '1m',
queue_run_max => '50',
mailman_domains => [$listdomain],
smtp_accept_max => '100',
smtp_accept_max_per_host => '10',
}
class { 'mailman':
vhost_name => $listdomain,
}
realize (
User::Virtual::Localuser['jbryce'],
)
Maillist {
provider => 'noaliasmailman',
}
maillist { 'kata-dev':
ensure => present,
admin => 'jonathan@openstack.org',
password => $listpassword,
description => 'Kata Containers Development Mailing List (not for usage questions)',
webserver => $listdomain,
mailserver => $listdomain,
}
}

View File

@ -241,4 +241,12 @@ class openstack_project::users {
gid => 2026,
}
@user::virtual::localuser { 'jbryce':
realname => 'Jonathan Bryce',
sshkeys => 'AAAAB3NzaC1yc2EAAAABIwAAAQEApFGM9q1gfiawBX5EnCQGxx2T1hwPDxrX2M64MfqcoBRpdrWRjxWm6Vhczfl+Ar2EQtGsuIm1QQiyiPL4zsJSQOfYXB0TqOQaAuFamSzZSNEm8coSa93E3zfXR9uln1lgCGutaWwH/KmGcSeAuuQCipKmKxc8QSAepGNP4Jx2L/EnXQh850xTQEIviJkJpA9oTRzXu12T7vzxsUCw041Q/KX16UvvGpt9IAoMAWFlQrMPzPFmqbUOIr7pRvv8TKcK9BNFS8S8jjT+wN0y/LY7cbTblgDfwSAl1P/naME5ugRVD5MZKixIE1F+x/j+M8+fpZ/EyR/6jSA3DYjEXOk2zQ==',
key_id => 'jbryce@jbryce-mbp-3.local',
uid => 2027,
gid => 2027,
}
}