Signed-off-by: Stephen Gran <steve@lobefin.net>
package { 'rsync':
ensure => installed,
- noop => true,
}
service { 'rsync':
ensure => stopped,
- noop => true,
require => Package['rsync'],
}
file { '/etc/logrotate.d/dsa-rsyncd':
source => 'puppet:///modules/rsync/logrotate.d-dsa-rsyncd',
- noop => true,
require => Package['debian.org'],
}
file { '/var/log/rsyncd':
ensure => directory,
- noop => true,
mode => '0755',
}
if $source {
file { $fname:
ensure => $ensure,
- noop => true,
source => $source
}
} elsif $content {
file { $fname:
ensure => $ensure,
- noop => true,
content => $content,
}
} else {
}
xinetd::service { "rsync-${name}":
- noop => true,
bind => $bind,
id => "${name}-rsync",
server => '/usr/sbin/rsyncd',