summaryrefslogtreecommitdiff
path: root/manifests/inotify.pp
blob: 45fcb7e199ccc37748c5915e5571e96422025ea4 (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
class reprepro::inotify inherits reprepro {
  case $lsbdistcodename {
    etch: {
      package {
        "inoticoming": ensure => '0.2.0-1~bpo40+1';
      }
    }
    default: {
      package {
        "inoticoming": ensure => 'installed';
      }
    }
  }
  file { "/etc/init.d/reprepro":
      owner => root, group => root, mode => 0755,
      source => "puppet://$server/modules/reprepro/inoticoming.init";
  }
  file { "/etc/default/reprepro":
      ensure => present,
      owner => root, group => root, mode => 0755,
      content => template('reprepro/inoticoming.default.erb'),
  }

  service { "reprepro":
      ensure => "running",
      pattern => "inoticoming.*reprepro.*processincoming",
      hasstatus => false,
      require => [File["/etc/default/reprepro"],
                  File["/etc/init.d/reprepro"] ],
  }
}