redis: Added parameter for bind address
This commit is contained in:
parent
012f12ef80
commit
307010a103
2 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,9 @@
|
|||
#
|
||||
# === Parameters
|
||||
#
|
||||
# $bind:
|
||||
# Address to bind to. Defaults to "127.0.0.1".
|
||||
#
|
||||
# $datadir:
|
||||
# Directory for redis database dumps.
|
||||
# Defaults to "/srv/redis".
|
||||
|
@ -12,7 +15,7 @@
|
|||
# $appendonly:
|
||||
# Enable append only mode. Defaults to false.
|
||||
#
|
||||
class redis($datadir="", $password="", $appendonly=false) {
|
||||
class redis($bind="127.0.0.1", $datadir="", $password="", $appendonly=false) {
|
||||
|
||||
package { "redis":
|
||||
ensure => installed,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bind 127.0.0.1
|
||||
bind <%= @bind %>
|
||||
dir /srv/redis
|
||||
appendonly <% if @appendonly == true %>yes<% else %>no<% end %>
|
||||
<% if @password -%>
|
||||
|
|
Loading…
Add table
Reference in a new issue