aboutsummaryrefslogtreecommitdiff
path: root/manifests/key/plain.pp
blob: e4a2f899fa5e15fc0856e14cac0362a382ae328d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define apt::key::plain ($source) {
  file {
    "${apt::apt_base_dir}/keys/${name}":
      source  => $source;
    "${apt::apt_base_dir}/keys":
      ensure  => directory;
  }
  exec { "apt-key add '${apt::apt_base_dir}/keys/${name}'":
    subscribe   => File["${apt::apt_base_dir}/keys/${name}"],
    refreshonly => true,
    notify      => Exec['refresh_apt'],
  }
}