Merge "Publish structured data listing our ML archives"

This commit is contained in:
Zuul 2021-01-14 03:38:55 +00:00 committed by Gerrit Code Review
commit c818a82376
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/sh
for site in `cut -d: -f1 /etc/mailman/sites | sort`; do
echo "$site:"
dir=`grep ^${site}: /etc/mailman/sites | cut -d' ' -f2`
for ml in `ls ${dir}/archives/public/ | sort`; do
echo " - $ml"
done
done

View File

@ -17,6 +17,26 @@ class openstack_project::lists(
mode => '0444', mode => '0444',
} }
file { '/usr/local/sbin/mk-archives-index':
ensure => present,
source => 'puppet:///modules/openstack_project/mailman/mk-archives-index',
owner => 'root',
group => 'root',
replace => true,
mode => '0744',
}
cron { 'mk-archives-index':
user => root,
hour => '0',
minute => '0',
command => 'mk-archives-index > /var/www/archives.yaml',
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
require => File['/usr/local/sbin/mk-archives-index',
],
}
# Disable inactive admins # Disable inactive admins
user::virtual::disable { 'oubiwann': } user::virtual::disable { 'oubiwann': }
user::virtual::disable { 'rockstar': } user::virtual::disable { 'rockstar': }