blob: f682216dfdaf8ba23de5e4d403cdbcdd43b20bb1 (
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"),
mode => 644,
owner => root,
group => root,
require => Package["ekeyd-egd-linux"];
}
}
|