mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
27 lines
653 B
Puppet
27 lines
653 B
Puppet
# Configure yumrepo
|
|
#
|
|
class fluentd::repo::yum (
|
|
$ensure = 'present',
|
|
$descr = 'TreasureData',
|
|
$baseurl = 'https://packages.treasuredata.com/2/redhat/$releasever/$basearch',
|
|
$enabled = '1',
|
|
$gpgcheck = '1',
|
|
$gpgkey = 'https://packages.treasuredata.com/GPG-KEY-td-agent',
|
|
) {
|
|
|
|
yumrepo { 'treasure-data':
|
|
ensure => $ensure,
|
|
descr => $descr,
|
|
baseurl => $baseurl,
|
|
enabled => $enabled,
|
|
gpgcheck => $gpgcheck,
|
|
notify => Exec['add GPG key'],
|
|
}
|
|
|
|
exec { 'add GPG key':
|
|
command => "rpm --import ${fluentd::repo::yum::gpgkey}",
|
|
path => '/bin:/usr/bin/',
|
|
refreshonly => true,
|
|
}
|
|
}
|