1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-11 16:19:29 +00:00

debian support, fix exec validations and repository

This commit is contained in:
Coto Cisternas
2016-01-15 17:35:19 -03:00
parent 2e5892663e
commit e693af3c42
4 changed files with 38 additions and 30 deletions

View File

@@ -1,23 +1,20 @@
# Configure apt::source
#
class fluentd::repo::apt (
$ensure = 'present',
$location = downcase("https://packages.treasuredata.com/2/${::operatingsystem}/${::lsbdistcodename}"),
$release = $::lsbdistcodename,
$repos = 'contrib',
$key = {
'id' => 'C901622B5EC4AF820C38AB861093DB45A12E206F',
'source' => 'https://packages.treasuredata.com/GPG-KEY-td-agent'
},
) {
class fluentd::repo::apt inherits fluentd {
include '::apt'
apt::source { 'treasure-data':
ensure => $ensure,
location => $location,
release => $release,
repos => $repos,
key => $key,
apt::source { $fluentd::repo_name:
location => $fluentd::repo_url,
comment => $fluentd::repo_desc,
repos => 'contrib',
architecture => 'amd64',
release => $fluentd::distro_codename,
key => {
id => $fluentd::repo_gpgkeyid,
source => $fluentd::repo_gpgkey,
},
include => {
'src' => false,
'deb' => true,
},
}
}
}