mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 05:10:36 +00:00
renamed manage_repo to repo_manage
consistency
This commit is contained in:
parent
2e5892663e
commit
afc59cb27e
@ -44,7 +44,7 @@ include '::fluentd'
|
||||
|
||||
#### Parameters
|
||||
|
||||
`manage_repo`
|
||||
`repo_manage`
|
||||
|
||||
Include repository to install recent fluentd (td-agent) from.
|
||||
**Default:** 'true'
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Parameters
|
||||
# ----------
|
||||
# [*manage_repo*]
|
||||
# [*repo_manage*]
|
||||
# Include repository to install recent fluentd (td-agent) from
|
||||
# Default: 'true'
|
||||
# [*package_ensure*]
|
||||
@ -53,7 +53,7 @@
|
||||
# Copyright 2015 wywy GmbH, unless otherwise noted.
|
||||
#
|
||||
class fluentd (
|
||||
$manage_repo = $::fluentd::params::manage_repo,
|
||||
$repo_manage = $::fluentd::params::repo_manage,
|
||||
$package_ensure = $::fluentd::params::package_ensure,
|
||||
$package_name = $::fluentd::params::package_name,
|
||||
$package_install_options = $::fluentd::params::package_install_options,
|
||||
@ -71,7 +71,7 @@ class fluentd (
|
||||
) inherits fluentd::params {
|
||||
|
||||
# parameter validation
|
||||
validate_bool($manage_repo)
|
||||
validate_bool($repo_manage)
|
||||
validate_string($package_ensure)
|
||||
validate_string($package_name)
|
||||
validate_array($package_install_options)
|
||||
|
@ -22,7 +22,7 @@ class fluentd::params {
|
||||
'Debian': {
|
||||
case $::operatingsystem {
|
||||
'Ubuntu': {
|
||||
$manage_repo = true
|
||||
$repo_manage = true
|
||||
}
|
||||
default: {
|
||||
fail("Unsupported osfamily: ${::operatingsystem}")
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Configure package repository
|
||||
#
|
||||
class fluentd::repo inherits fluentd {
|
||||
if $::fluentd::manage_repo {
|
||||
if $::fluentd::repo_manage {
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
include ::fluentd::repo::apt
|
||||
|
Loading…
Reference in New Issue
Block a user