mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
add: an $ensure parameter
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
This commit is contained in:
parent
9aaccda9e0
commit
e3e4b9bd61
@ -1,6 +1,7 @@
|
|||||||
# Configure yumrepo
|
# Configure yumrepo
|
||||||
#
|
#
|
||||||
class fluentd::repo::yum (
|
class fluentd::repo::yum (
|
||||||
|
$ensure = 'present',
|
||||||
$descr = 'TreasureData',
|
$descr = 'TreasureData',
|
||||||
$baseurl = 'https://packages.treasuredata.com/2/redhat/$releasever/$basearch',
|
$baseurl = 'https://packages.treasuredata.com/2/redhat/$releasever/$basearch',
|
||||||
$enabled = '1',
|
$enabled = '1',
|
||||||
@ -9,6 +10,7 @@ class fluentd::repo::yum (
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
yumrepo { 'treasure-data':
|
yumrepo { 'treasure-data':
|
||||||
|
ensure => $ensure,
|
||||||
descr => $descr,
|
descr => $descr,
|
||||||
baseurl => $baseurl,
|
baseurl => $baseurl,
|
||||||
enabled => $enabled,
|
enabled => $enabled,
|
||||||
|
Loading…
Reference in New Issue
Block a user