summaryrefslogtreecommitdiff
path: root/manifests/purged.pp
blob: fde74b3d1cb33f866f75ca028517c14fa232e63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class reprepro::purged(
  $origin    = $::domain,
  $uploaders = '',
  $basedir   = '/srv/reprepro'
) {

  user { "reprepro":
    ensure => absent,
  }

  group { "reprepro":
    ensure => absent,
  }

  file {
    "$basedir":
    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,
  }
}