Skip to content

Commit

Permalink
re-hash due to hiera known limitation
Browse files Browse the repository at this point in the history
Due to known limitation the hash has to be re-done here for deep merging to work:
https://docs.puppetlabs.com/hiera/1/puppet.html#limitations
  • Loading branch information
cdenneen committed Apr 17, 2015
1 parent fc9d46e commit 0dc8465
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
else { $real_defaults = $::proftpd::default_options }

# check if defaults should be included
# re-hash due to hiera 1.x known limitation
$hash_options = hiera_hash('proftpd::options',$::proftpd::options)
if ( $::proftpd::default_config == true ) {
$real_options = deep_merge($real_defaults, $::proftpd::options)
$real_options = deep_merge($real_defaults, $hash_options)
}
# do not include defaults
else { $real_options = $::proftpd::options }

else { $real_options = $hash_options }
# required variables
$base_dir = $::proftpd::base_dir
$load_modules = $::proftpd::load_modules
Expand Down

0 comments on commit 0dc8465

Please sign in to comment.