Skip to content

Commit

Permalink
Updated cloud-config to avoid having to manually change redis password
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Jun 26, 2021
1 parent 7b74827 commit de5948f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion etc/log4j2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Configuration:
Root:
AppenderRef:
- ref: Console
level: debug
level: info
2 changes: 2 additions & 0 deletions etc/redis.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Please use a strong secret
requirepass changeit

set 60d7743ec5f225000ffff13d "{\"kind\":\"User\",\"metadata\":{\"name\":\"Default\",\"ref\":\"60d7743ec5f225000ffff13d\",\"createdOn\":\"2021-06-26T18:38:54.649Z\",\"modifiedOn\":\"2021-06-26T18:38:54.661Z\"},\"spec\":{\"credentials\":{\"username\":\"admin\",\"secret\":\"changeit\"}}}"

appendonly yes
rename-command FLUSHDB ""
rename-command FLUSHALL ""
Expand Down
2 changes: 2 additions & 0 deletions operator/cloud-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ runcmd:
- cd /opt/fonos/operator
- ./gen-secrets.sh
- DS_SECRET=$(grep DS_SECRET .env | cut -d '=' -f2)
- SIPPROXY_SECRET=$(grep SIPPROXY_SECRET .env | cut -d '=' -f2)
- sed -i.bak -e "s#requirepass .*#requirepass ${DS_SECRET}#g" "./../config/redis.conf"
- sed -i.bak -e "s#changeit#${SIPPROXY_SECRET}#g" "./../config/redis.conf"
- docker-compose -f init.yml up service_token admin_token
- ./basic-network.sh start
- sleep 90
Expand Down

0 comments on commit de5948f

Please sign in to comment.