class reprepro::purged( $origin = $::domain, $uploaders = '', $basedir = '/srv/reprepro' ) { $reprepro_origin = $origin $reprepro_uploaders = $uploaders user { "reprepro": ensure => absent, } group { "reprepro": ensure => absent, } file { "$basedir": force => true, ensure => absent; "$basedir/conf": force => true, ensure => absent; "$basedir/db": force => true, ensure => absent; "$basedir/dists": force => true, ensure => absent; "$basedir/pool": force => true, ensure => absent; "$basedir/incoming": force => true, ensure => absent; "$basedir/logs": force => true, ensure => absent; "$basedir/tmp": force => true, ensure => absent; "$basedir/conf/distributions": force => true, ensure => absent; "$basedir/conf/uploaders": force => true, ensure => absent; "$basedir/conf/incoming": force => true, ensure => absent; "$basedir/index.html": force => true, ensure => absent; "$basedir/.gnupg": force => true, ensure => absent; "$basedir/.gnupg/secring.gpg": force => true, ensure => absent; "/usr/local/bin/reprepro-export-key": ensure => absent, content => template('reprepro/reprepro-export-key.sh.erb'), owner => root, group => root, mode => 755, } cron { reprepro: command => "/usr/bin/reprepro --silent -b ${reprepro::basedir} processincoming incoming", user => reprepro, ensure => absent, } }