mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
e3e4b9bd61
review: https://github.com/wywygmbh/puppet-fluentd/pull/1#discussion-diff-50847623 refs: http://docs.puppetlabs.com/puppet/latest/reference/type.html#yumrepo-attribute-ensure
26 lines
625 B
Puppet
26 lines
625 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 => "/usr/bin/rpm --import ${fluentd::repo::yum::gpgkey}",
|
|
refreshonly => true,
|
|
}
|
|
}
|