redis: Make the append only mode optional
This commit is contained in:
parent
c0b4da4547
commit
6d51fa75e6
2 changed files with 5 additions and 2 deletions
|
@ -9,7 +9,10 @@
|
||||||
# $password:
|
# $password:
|
||||||
# Optional password for client connections.
|
# Optional password for client connections.
|
||||||
#
|
#
|
||||||
class redis($datadir="", $password="") {
|
# $appendonly:
|
||||||
|
# Enable append only mode. Defaults to false.
|
||||||
|
#
|
||||||
|
class redis($datadir="", $password="", $appendonly=false) {
|
||||||
|
|
||||||
package { "redis":
|
package { "redis":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
bind 127.0.0.1
|
bind 127.0.0.1
|
||||||
dir /srv/redis
|
dir /srv/redis
|
||||||
appendonly yes
|
appendonly <% if @appendonly == true %>yes<% else %>no<% end %>
|
||||||
<% if @password -%>
|
<% if @password -%>
|
||||||
requirepass <%= @password %>
|
requirepass <%= @password %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue