diff --git a/manifests/init.pp b/manifests/init.pp index f5c4c1b2c..723810699 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -37,9 +37,7 @@ $collectd_version_real = pick_default($facts['collectd_version'], $minimum_version) - class { '::collectd::install': - package_install_options => $package_install_options, - } + class { '::collectd::install': } class { '::collectd::repo': } diff --git a/manifests/install.pp b/manifests/install.pp index 5b04556b9..ed3522fd4 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -1,18 +1,13 @@ -class collectd::install ( - $package_ensure = $collectd::package_ensure, - $package_name = $collectd::package_name, - $package_provider = $collectd::package_provider, - Optional[Array] $package_install_options = $collectd::package_install_options, - $manage_package = $collectd::manage_package, -) { +# +class collectd::install { assert_private() - if $manage_package { - package { $package_name: - ensure => $package_ensure, - provider => $package_provider, - install_options => $package_install_options, + if $collectd::manage_package { + package { $collectd::package_name: + ensure => $collectd::package_ensure, + provider => $collectd::package_provider, + install_options => $collectd::package_install_options, } } }