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
|
# === Parameters
|
||||||
#
|
#
|
||||||
|
# $bind:
|
||||||
|
# Address to bind to. Defaults to "127.0.0.1".
|
||||||
|
#
|
||||||
# $datadir:
|
# $datadir:
|
||||||
# Directory for redis database dumps.
|
# Directory for redis database dumps.
|
||||||
# Defaults to "/srv/redis".
|
# Defaults to "/srv/redis".
|
||||||
|
@ -12,7 +15,7 @@
|
||||||
# $appendonly:
|
# $appendonly:
|
||||||
# Enable append only mode. Defaults to false.
|
# 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":
|
package { "redis":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
bind 127.0.0.1
|
bind <%= @bind %>
|
||||||
dir /srv/redis
|
dir /srv/redis
|
||||||
appendonly <% if @appendonly == true %>yes<% else %>no<% end %>
|
appendonly <% if @appendonly == true %>yes<% else %>no<% end %>
|
||||||
<% if @password -%>
|
<% if @password -%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue