Skip to content

Commit

Permalink
fix Bug #12656
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 7, 2016
1 parent 010a854 commit 3a72551
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# Icinga Development Team <[email protected]>
#
class icinga2::config inherits icinga2::params {
class icinga2::config {

if $module_name != $caller_module_name {
fail("icinga2::config is a private class of the module icinga2, you're not permitted to use it.")
Expand Down
4 changes: 3 additions & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
#
# Icinga Development Team <[email protected]>
#
class icinga2::install inherits icinga2::params {
class icinga2::install {

if $module_name != $caller_module_name {
fail("icinga2::install is a private class of the module icinga2, you're not permitted to use it.")
}

if $::osfamily == 'windows' { Package { provider => chocolatey, } }

$package = $icinga2::params::package

package { $package:
ensure => installed,
}
Expand Down
10 changes: 6 additions & 4 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
#
# Icinga Development Team <[email protected]>
#
class icinga2::service inherits icinga2::params {
class icinga2::service {

if $module_name != $caller_module_name {
fail("icinga2::service is a private class of the module icinga2, you're not permitted to use it.")
}

$ensure = $icinga2::ensure
$enable = $icinga2::enable
$ensure = $icinga2::ensure
$enable = $icinga2::enable
$manage_service = $icinga2::manage_service
$service = $icinga2::params::service

if $icinga2::manage_service {
if $manage_service {
service { $service:
ensure => $ensure,
enable => $enable,
Expand Down

0 comments on commit 3a72551

Please sign in to comment.