Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
elasticsearch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
elasticsearch
Commits
4c84c7c1
Commit
4c84c7c1
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
General improvements
parent
c77c1e6e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tasks/backup.yml
+4
-0
4 additions, 0 deletions
tasks/backup.yml
tasks/install.yml
+12
-0
12 additions, 0 deletions
tasks/install.yml
tasks/main.yml
+2
-0
2 additions, 0 deletions
tasks/main.yml
tasks/purge.yml
+1
-0
1 addition, 0 deletions
tasks/purge.yml
with
19 additions
and
0 deletions
tasks/backup.yml
+
4
−
0
View file @
4c84c7c1
...
...
@@ -11,12 +11,16 @@
force_basic_auth
:
yes
status_code
:
200
body_format
:
json
tags
:
-
Config
-
name
:
Copy snapshot script
template
:
src
:
elasticsearch-snapshot
dest
:
/usr/local/bin/elasticsearch-snapshot
mode
:
0755
tags
:
-
Config
-
name
:
Backup Cron
cron
:
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
12
−
0
View file @
4c84c7c1
...
...
@@ -27,6 +27,10 @@
owner
:
root
group
:
elasticsearch
mode
:
0644
tags
:
-
Config
notify
:
-
Restart Elasticsearch
-
name
:
Uninstall Plugins
elasticsearch_plugin
:
...
...
@@ -63,6 +67,10 @@
line
:
'
xpack.security.transport.ssl.enabled:
false'
-
regexp
:
'
path.repo'
line
:
'
path.repo:
["/var/backups/elasticsearch"]'
tags
:
-
Config
notify
:
-
Restart Elasticsearch
-
name
:
Configure JVM options
lineinfile
:
...
...
@@ -77,6 +85,10 @@
line
:
'
-Xmx{{
elasticsearch.memory|default("2g")
}}'
-
line
:
'
-XX:+UseConcMarkSweepGC'
state
:
absent
tags
:
-
Config
notify
:
-
Restart Elasticsearch
-
name
:
Prepare backup directory
file
:
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
0
View file @
4c84c7c1
...
...
@@ -29,6 +29,8 @@
-
name
:
Include backup
include_tasks
:
backup.yml
tags
:
-
Config
when
:
elasticsearch.snapshot is defined and elasticsearch.snapshot.indices is defined
when
:
not excluded_roles or "elasticsearch" not in excluded_roles
This diff is collapsed.
Click to expand it.
tasks/purge.yml
+
1
−
0
View file @
4c84c7c1
...
...
@@ -27,3 +27,4 @@
with_items
:
'
{{
elasticsearch.purge
}}'
tags
:
-
cron
-
Config
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment