Skip to content

Commit

Permalink
fix voxpupuli#285 disable feature checker does not trigger refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz authored and n00by committed Apr 26, 2018
1 parent 59a10f9 commit 2634366
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 11 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
fail("icinga2::config is a private class of the module icinga2, you're not permitted to use it.")
}

$constants = prefix($::icinga2::_constants, 'const ')
$conf_dir = $::icinga2::params::conf_dir
$plugins = $::icinga2::plugins
$confd = $::icinga2::_confd
$constants = prefix($::icinga2::_constants, 'const ')
$conf_dir = $::icinga2::params::conf_dir
$plugins = $::icinga2::plugins
$confd = $::icinga2::_confd
$purge_features = $::icinga2::purge_features

if $::kernel != 'windows' {
$template_constants = icinga2_attributes($constants)
Expand All @@ -40,4 +41,10 @@
content => $template_mainconfig,
}

file { "${conf_dir}/features-enabled":
ensure => directory,
purge => $purge_features,
recurse => $purge_features,
}

}
6 changes: 0 additions & 6 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
}
}

file { "${conf_dir}/features-enabled":
ensure => directory,
purge => $purge_features,
recurse => $purge_features,
}

# anchor, i.e. for config directory set by confd parameter
file { $conf_dir:
ensure => directory,
Expand Down

0 comments on commit 2634366

Please sign in to comment.