diff options
Diffstat (limited to 'manifests/purged.pp')
-rw-r--r-- | manifests/purged.pp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/manifests/purged.pp b/manifests/purged.pp new file mode 100644 index 0000000..b84cffb --- /dev/null +++ b/manifests/purged.pp @@ -0,0 +1,69 @@ +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": + ensure => absent; + + "$basedir/conf": + ensure => absent; + + "$basedir/db": + ensure => absent; + + "$basedir/dists": + ensure => absent; + + "$basedir/pool": + ensure => absent; + + "$basedir/incoming": + ensure => absent; + + "$basedir/logs": + ensure => absent; + + "$basedir/tmp": + ensure => absent; + + "$basedir/conf/distributions": + ensure => absent; + + "$basedir/conf/uploaders": + ensure => absent; + + "$basedir/conf/incoming": + ensure => absent; + + "$basedir/index.html": + ensure => absent; + + "$basedir/.gnupg": + ensure => absent; + + "$basedir/.gnupg/secring.gpg": + ensure => absent; + + "/usr/local/bin/reprepro-export-key": + ensure => absent, + content => template('reprepro/reprepro-export-key.sh.erb'), + owner => root, + group => root, + mode => 755, + } +} + |