mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-13 21:50:34 +00:00
ff5ea7563a
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.
33 lines
830 B
Puppet
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']
|
|
}
|