Skip to content

Commit

Permalink
Merge pull request #779 from juniorsysadmin/apache-datatype
Browse files Browse the repository at this point in the history
collectd::plugin::apache - Use data types
  • Loading branch information
juniorsysadmin committed Apr 9, 2018
2 parents 5fd233e + 69765e6 commit b0ba67d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions manifests/plugin/apache.pp
@@ -1,18 +1,16 @@
# https://collectd.org/wiki/index.php/Plugin:Apache
class collectd::plugin::apache (
$ensure = 'present',
$manage_package = undef,
Enum['present', 'absent'] $ensure = 'present',
Boolean $manage_package = $collectd::manage_package,
Hash $instances = { 'localhost' => { 'url' => 'http://localhost/mod_status?auto' } },
$interval = undef,
Optional[Integer[1]] $interval = undef,
Optional[Array] $package_install_options = $collectd::package_install_options,
) {

include ::collectd

$_manage_package = pick($manage_package, $::collectd::manage_package)

if $facts['os']['family'] == 'RedHat' {
if $_manage_package {
if $manage_package {
package { 'collectd-apache':
ensure => $ensure,
install_options => $package_install_options,
Expand Down

0 comments on commit b0ba67d

Please sign in to comment.