Skip to content

Commit

Permalink
add redis pass as ansible variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Yakovlev committed Jul 27, 2017
1 parent 1efe1a1 commit 0eac12a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export ISOLATE_BACKEND;
ISOLATE_REDIS_HOST="127.0.0.1";
ISOLATE_REDIS_PORT="6379";
ISOLATE_REDIS_DB=0;
ISOLATE_REDIS_PASS="te2uth4dohLi8i"; # /etc/redis.conf
ISOLATE_REDIS_PASS="te2uth4dohLi8i"; # ansible/roles/redis/vars/main.yml
export ISOLATE_REDIS_HOST;
export ISOLATE_REDIS_PORT;
export ISOLATE_REDIS_PASS;
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/redis/templates/redis_centos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ slave-priority 100
# requirepass {{ redis_pass }}

# for debug only
requirepass te2uth4dohLi8i
requirepass {{ redis_pass }}

# Command renaming.
#
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/redis/templates/redis_debian.conf
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ slave-priority 100
#
# requirepass foobared

requirepass te2uth4dohLi8i
requirepass {{ redis_pass }}

# Command renaming.
#
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/redis/templates/redis_ubuntu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bind 127.0.0.1
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
protected-mode no
requirepass te2uth4dohLi8i
requirepass {{ redis_pass }}

# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/redis/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
redis_pass: te2uth4dohLi8i

0 comments on commit 0eac12a

Please sign in to comment.