1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-13 21:50:34 +00:00
puppet-fluentd/manifests/repo/apt.pp
Ricky Ramirez ff5ea7563a Don't pull gpg key from a keyserver. (#3)
This prevents an outage should the keyserver be unaccesible (e.g. the
host doesn't allow outbound traffic or the keyserver is down)

The subkey has been removed from the original key since it is not
required and older versions of the apt module incorrectly parse the
subkey's fingerprint.
2019-08-15 08:49:55 -07:00

33 lines
830 B
Puppet

# Configure apt::source
#
class fluentd::repo::apt (
$ensure = 'present',
$location = downcase("http://packages.treasuredata.com/${::fluentd::repo_version}/${::lsbdistid}/${::lsbdistcodename}"),
$release = $::lsbdistcodename,
$repos = 'contrib',
$architecture = $::architecture,
$key = {
'id' => 'BEE682289B2217F45AF4CC3F901F9177AB97ACBE',
'content' => file('fluentd/GPG-KEY-td-agent'),
},
$include = {
'src' => false,
'deb' => true,
},
) {
include '::apt'
apt::source { 'treasure-data':
ensure => $ensure,
location => $location,
release => $release,
architecture => $architecture,
repos => $repos,
key => $key,
include => $include,
}
Class['apt::update'] -> Package['fluentd']
}