Skip to content

Commit

Permalink
add parameters for /etc/default/redis ownership on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
trefzer committed Dec 11, 2021
1 parent 76019cb commit c216f7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
'Debian': {
file { '/etc/default/redis-server':
ensure => file,
group => $redis::config_group,
mode => $redis::config_file_mode,
owner => $redis::config_owner,
group => pick($redis::debdefault_group, $redis::config_group),
mode => pick($redis::debdefault_file_mode, $redis::config_file_mode),
owner => pick($redis::debdefault_owner, $redis::config_owner),
}
}

Expand Down
12 changes: 12 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@
# Adjust filesystem group for $workdir.
# @param workdir_owner
# Adjust filesystem owner for $workdir.
# @param debdefault_group
# group of /etc/defaults/redis on Debian systems
# if undef, $redis::config_group is taken
# @param debdefault_file_mode
# filemode of /etc/defaults/redis on Debian systems
# if undef, $redis::config_file_mode is taken
# @param debdefault_owner
# owner of /etc/defaults/redis on Debian systems
# if undef, $redis::config_owner is taken
# @param zset_max_ziplist_entries
# Set max entries for sorted sets.
# @param zset_max_ziplist_value
Expand Down Expand Up @@ -369,6 +378,9 @@
Stdlib::Filemode $workdir_mode = '0750',
Optional[String[1]] $workdir_group = undef,
Optional[String[1]] $workdir_owner = undef,
Optional[String[1]] $debdefault_group = undef,
Optional[Stdlib::Filemode] $debdefault_file_mode = undef,
Optional[String[1]] $debdefault_owner = undef,
Integer[0] $zset_max_ziplist_entries = 128,
Integer[0] $zset_max_ziplist_value = 64,
Boolean $cluster_enabled = false,
Expand Down

0 comments on commit c216f7c

Please sign in to comment.