aboutsummaryrefslogtreecommitdiff
path: root/manifests/key.pp
blob: 65b62e93fc0212f506b4b94cc4e6390ba40ad1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define apt::key ($source, $ensure = 'present') {
  validate_re(
    $name, '\.gpg$',
    'An apt::key resource name must have the .gpg extension',
  )

  file {
    "/etc/apt/trusted.gpg.d/${name}":
      ensure => $ensure,
      source => $source,
      notify => Exec['refresh_apt'],
  }
}