Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
minimal-redis-ha
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr. Marcel Wunderlich
minimal-redis-ha
Commits
c410f532
Commit
c410f532
authored
Apr 01, 2020
by
Marcel Wunderlich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Konfigurierebare Sicherheitsabfrage
parent
5173d954
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
README.md
README.md
+10
-0
roles/redis/tasks/config.yml
roles/redis/tasks/config.yml
+8
-0
roles/redis/vars/main.yml
roles/redis/vars/main.yml
+6
-0
No files found.
README.md
View file @
c410f532
...
...
@@ -20,3 +20,13 @@ Installation instructions
1.
configure hosts in hosts.ini
2.
maybe another step to setup HAProxy and Redis Configs
3.
ansible-playbooks -i hosts.ini install.yml
Safety note
-----------
Some operations might stop redis services, in those roles (currently only the
redis role) we add the variables
`safe_install`
and
`sure`
; if
`safe_install`
is true, operations either have to be limited to a single host, e.g. via
`--limit hostname`
or you have to set
`-e sure=REALLYSURE`
.
roles/redis/tasks/config.yml
View file @
c410f532
-
name
:
Is only one host being reconfigured?
fail
:
msg="Only configure ONE host at a time via --limit hostname"
when
:
-
safe_install ==
true
-
play_hosts | length !=
1
-
sure != 'REALLYSURE'
-
name
:
Shut down redis before configuration
service
:
name
:
redis
...
...
roles/redis/vars/main.yml
View file @
c410f532
---
# vars file for roles/redis
redis_timeout
:
0
# if safe_install is configured, we require
# sure == REALLYSURE for all operations that might lead to a shutdown of all
# redis servers at the same time
safe_install
:
true
sure
:
"
no"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment