Skip to content

Commit

Permalink
fix: disable protected mode in redis 7.2 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrrypg authored Jul 17, 2024
1 parent 0c4ce6f commit 3919e5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/redis_7_2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#
REDIS_PASSWORD:
REDIS_BIND_IP: 127.0.0.1
REDIS_ENABLE_PROTECTED_MODE: "no"
REDIS_PERSISTENCE_DIR: /var/lib/redis
REDIS_MEMORY_LIMIT: 512mb
REDIS_MAX_MEMORY_POLICY: allkeys-lru
Expand Down
2 changes: 1 addition & 1 deletion roles/redis_7_2/templates/etc/redis/redis.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bind {{ REDIS_BIND_IP }}
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
protected-mode yes
protected-mode {{ REDIS_ENABLE_PROTECTED_MODE }}

# 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
3 changes: 1 addition & 2 deletions roles/storage_backups/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@ STORAGE_BACKUPS_AZURE_CONTAINER_NAME: "{{ STORAGE_BACKUPS_TYPE_OPTIONS.AZURE_CON
STORAGE_BACKUPS_AZURE_PATH: "{{ STORAGE_BACKUPS_TYPE_OPTIONS.AZURE_PATH | default('SET ME PLEASE') }}"
STORAGE_BACKUPS_AZURE_CONTAINER_SAS_TOKEN: "{{ STORAGE_BACKUPS_TYPE_OPTIONS.AZURE_CONTAINER_SAS_TOKEN | default('SET ME PLEASE') }}"
STORAGE_BACKUPS_AZURE_ACCOUNT_NAME: "{{ STORAGE_BACKUPS_TYPE_OPTIONS.AZURE_ACCOUNT_NAME | default('SET ME PLEASE') }}"
STORAGE_BACKUPS_AZURE_REMOTE_DEST: https://{{ STORAGE_BACKUPS_AZURE_ACCOUNT_NAME }}.blob.core.windows.net/{{ STORAGE_BACKUPS_AZURE_CONTAINER_NAME }}/{{ STORAGE_BACKUPS_AZURE_PATH
}}/{{ item | basename }} # noqa yaml[line-length]
STORAGE_BACKUPS_AZURE_REMOTE_DEST: https://{{ STORAGE_BACKUPS_AZURE_ACCOUNT_NAME }}.blob.core.windows.net/{{ STORAGE_BACKUPS_AZURE_CONTAINER_NAME }}/{{ STORAGE_BACKUPS_AZURE_PATH }}/{{ item | basename }} # noqa yaml[line-length]
STORAGE_BACKUPS_AZURE_COMMAND: azcopy cp '{{ item }}' '{{ STORAGE_BACKUPS_AZURE_REMOTE_DEST }}?{{ STORAGE_BACKUPS_AZURE_CONTAINER_SAS_TOKEN }}'

0 comments on commit 3919e5e

Please sign in to comment.