1 # a provider of webserver logs
2 class roles::weblog_provider {
3 ssh::keygen {'weblogsync': }
4 ssh::authorized_key_add { 'weblongsync-provider::destination':
5 target_user => 'weblogsync',
6 command => "/srv/weblogs.debian.org/bin/ssh-wrap ${::fqdn}",
7 key => $facts['weblogsync_key'],
8 collect_tag => 'weblogsync',
11 file { '/etc/cron.d/puppet-weblog-provider': ensure => absent, }
12 concat::fragment { 'dsa-puppet-stuff--weblog-provider':
13 target => '/etc/cron.d/dsa-puppet-stuff',
15 0 1 * * * weblogsync sleep $((RANDOM \% 1800)); rsync -a --delete-excluded --include 'www.debian.org-access.log-*gz' --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@wolkenstein.debian.org:-weblogs-incoming-