summaryrefslogtreecommitdiff
path: root/manifests/host/debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/host/debian.pp')
-rw-r--r--manifests/host/debian.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/host/debian.pp b/manifests/host/debian.pp
index a457ae7..773d84d 100644
--- a/manifests/host/debian.pp
+++ b/manifests/host/debian.pp
@@ -1,3 +1,21 @@
class ekeyd::host::debian inherits ekeyd::host::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,
+ }
}