mirror of
https://github.com/krislamo/puppet-fluentd
synced 2025-09-11 16:19:29 +00:00
added redhat(yumrepo) support
Check CentOS7.2(1511) / Redhat7.1 refs - https://td-agent-package-browser.herokuapp.com/2/redhat/ - http://docs.puppetlabs.com/puppet/latest/reference/type.html#yumrepo
This commit is contained in:
25
manifests/repo/yum.pp
Normal file
25
manifests/repo/yum.pp
Normal file
@@ -0,0 +1,25 @@
|
||||
# Configure yumrepo
|
||||
#
|
||||
class fluentd::repo::yum (
|
||||
$descr = 'TreasureData',
|
||||
$baseurl = 'https://packages.treasuredata.com/2/redhat/$releasever/$basearch',
|
||||
$enabled = '1',
|
||||
$gpgcheck = '1',
|
||||
$gpgkey = 'https://packages.treasuredata.com/GPG-KEY-td-agent',
|
||||
) {
|
||||
|
||||
include '::yumrepo'
|
||||
|
||||
yumrepo { 'treasure-data':
|
||||
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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user