Skip to content

Commit

Permalink
More specific include and class chaining.
Browse files Browse the repository at this point in the history
This will help fight confusion with top-level classes, such as:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Could not find class ::preinstall for ...
  • Loading branch information
flantz committed Feb 20, 2015
1 parent 51e35cc commit 8f9c2bc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -417,21 +417,21 @@
$zset_max_ziplist_entries = $::redis::params::zset_max_ziplist_entries,
$zset_max_ziplist_value = $::redis::params::zset_max_ziplist_value,
) inherits redis::params {
include preinstall
include install
include config
include service
include redis::preinstall
include redis::install
include redis::config
include redis::service

if $::redis::notify_service {
Class['preinstall'] ->
Class['install'] ->
Class['config'] ~>
Class['service']
Class['redis::preinstall'] ->
Class['redis::install'] ->
Class['redis::config'] ~>
Class['redis::service']
} else {
Class['preinstall'] ->
Class['install'] ->
Class['config'] ->
Class['service']
Class['redis::preinstall'] ->
Class['redis::install'] ->
Class['redis::config'] ->
Class['redis::service']
}

# Sanity check
Expand Down

0 comments on commit 8f9c2bc

Please sign in to comment.