blob: f96fe6c28777c1a3eb7fc1122b7cf8ba3af60de1 (
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
|
class ekeyd::egd::debian inherits ekeyd::egd {
if ( $virtual == "vserver" ) {
fail("This class shouldn't be included on vservers")
}
Package["ekeyd-egd-linux"] {
ensure => $lsbdistcodename ? {
"lenny" => "1.1.3-3~bpo50+1",
default => 'installed'
}
}
Service["egd-linux"] {
ensure => running,
hasrestart => true,
pattern => '/usr/sbin/ekeyd-egd-linux',
subscribe => File["/etc/default/ekeyd-egd-linux"],
}
file { "/etc/default/ekeyd-egd-linux":
content => template("ekeyd/ekeyd-egd-linux.default.erb"),
mode => 644,
owner => root,
group => root,
require => Package["ekeyd-egd-linux"];
}
}
|