Skip to content

Commit

Permalink
Merge pull request #2 from cdenneen/patch-1
Browse files Browse the repository at this point in the history
Re-hash proftpd::options
  • Loading branch information
fraenki committed Apr 17, 2015
2 parents fc9d46e + a904170 commit a37dd1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
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
Expand Down

0 comments on commit a37dd1b

Please sign in to comment.