mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-12 21:50:34 +00:00
fixed lint warnings
This commit is contained in:
parent
9d2175411b
commit
922914c32b
@ -2,18 +2,18 @@
|
||||
#
|
||||
class fluentd::config inherits fluentd {
|
||||
|
||||
file { $config_file:
|
||||
file { $::fluentd::config_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
source => "puppet:///modules/fluentd/td-agent.conf",
|
||||
source => 'puppet:///modules/fluentd/td-agent.conf',
|
||||
notify => Class['Fluentd::Service'],
|
||||
}
|
||||
|
||||
file { $conf_dir:
|
||||
file { $::fluentd::conf_dir:
|
||||
ensure => 'directory',
|
||||
owner => $user_name,
|
||||
group => $user_group,
|
||||
owner => $::fluentd::user_name,
|
||||
group => $::fluentd::user_group,
|
||||
mode => '0750',
|
||||
}
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
class fluentd::install inherits fluentd {
|
||||
|
||||
package { 'fluentd':
|
||||
ensure => $package_ensure,
|
||||
name => $package_name,
|
||||
install_options => $package_install_options,
|
||||
ensure => $::fluentd::package_ensure,
|
||||
name => $::fluentd::package_name,
|
||||
install_options => $::fluentd::package_install_options,
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Configure package repository
|
||||
#
|
||||
class fluentd::repo inherits fluentd {
|
||||
if $manage_repo {
|
||||
if $::fluentd::manage_repo {
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
include ::fluentd::repo::apt
|
||||
|
@ -2,11 +2,11 @@
|
||||
#
|
||||
class fluentd::service inherits fluentd {
|
||||
|
||||
if $service_manage {
|
||||
if $::fluentd::service_manage {
|
||||
service { 'fluentd':
|
||||
name => $service_name,
|
||||
ensure => $service_ensure,
|
||||
enable => $service_enable,
|
||||
ensure => $::fluentd::service_ensure,
|
||||
name => $::fluentd::service_name,
|
||||
enable => $::fluentd::service_enable,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user