add ntp module
[mirror/dsa-puppet.git] / modules / apt-keys / manifests / init.pp
1 class apt-keys {
2     file {
3         "/etc/apt/trusted-keys.d/":
4           ensure  => directory,
5           purge   => true,
6           notify  => Exec["apt-keys-update"],
7           ;
8
9         "/etc/apt/trusted-keys.d/backports.org.asc":
10           source  => "puppet:///apt-keys/backports.org.asc",
11           mode    => 664,
12           notify  => Exec["apt-keys-update"],
13           ;
14         "/etc/apt/trusted-keys.d/db.debian.org.asc":
15           source  => "puppet:///apt-keys/db.debian.org.asc",
16           mode    => 664,
17           notify  => Exec["apt-keys-update"],
18           ;
19     }
20
21     exec { "apt-keys-update":
22          command => 'for keyfile in /etc/apt/trusted-keys.d/*; do apt-key add $keyfile; done',
23          refreshonly => true
24     }
25 }
26