Skip to content

Commit

Permalink
Merge pull request #8 from zebzeb/extra_conf_file
Browse files Browse the repository at this point in the history
add extra config file parameter
  • Loading branch information
arioch committed Mar 25, 2014
2 parents 054707c + 1334325 commit d0bb45c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
$daemonize = $::redis::params::daemonize,
$databases = $::redis::params::databases,
$dbfilename = $::redis::params::dbfilename,
$extra_config_file = $::redis::params::extra_config_file,
$hash_max_ziplist_entries = $::redis::params::hash_max_ziplist_entries,
$hash_max_ziplist_value = $::redis::params::hash_max_ziplist_value,
$list_max_ziplist_entries = $::redis::params::list_max_ziplist_entries,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
$daemonize = true
$databases = 16
$dbfilename = 'dump.rdb'
$extra_config_file = undef
$hash_max_ziplist_entries = 512
$hash_max_ziplist_value = 64
$list_max_ziplist_entries = 512
Expand Down
4 changes: 4 additions & 0 deletions templates/redis.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -541,3 +541,7 @@ client-output-buffer-limit pubsub 32mb 8mb 60
#
# include /path/to/local.conf
# include /path/to/other.conf
<% if @extra_config_file -%>
include <%= @extra_config_file %>
<% end -%>

0 comments on commit d0bb45c

Please sign in to comment.