summaryrefslogtreecommitdiff
path: root/manifests/egd/debian.pp
blob: aecad2e877c9b983b2b000ad3b71ab66b1a07d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class ekeyd::egd::debian inherits ekeyd::egd::base {

  Package["ekeyd-egd-linux"] {
    ensure => $lsbdistcodename ? {
      "lenny" => "1.1.3-3~bpo50+1",
      default => 'installed'
    }
  }

  Service["egd-linux"] {
    name => 'ekeyd-egd-linux',
    hasstatus => true,
    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"];
  }
}