summaryrefslogtreecommitdiff
path: root/puppet/modules/apt/manifests/key/plain.pp
blob: dff8b51b8603bf0572ead5cc8e7ed2f523c98add (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['apt_updated'],
  }
}