summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
blob: 5f3f061b07feabf6642c9c52f402fb1679cd9bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class ekeyd::debian inherits ekeyd::base {
  package { "usbutils": ensure => installed }

  if ( $virtual == "vserver" ) or ( $virtual == "xenu" ) {
    fail("This class shouldn't be included on vservers or xen domUs")
  }

  file { "/etc/default/ekeyd":
    source  => "puppet:///modules/ekeyd/debian/ekeyd.default",
    mode    => 644,
    owner   => root,
    group   => root,
    require => File["/etc/entropykey/ekeyd.conf"];
  }

  Service["ekeyd"] {
    subscribe  => [ File["/etc/default/ekeyd"], File["/etc/entropykey/ekeyd.conf"] ],
    pattern    => '/usr/sbin/ekeyd',
    hasrestart => true,
  }
}