Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elastalert
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
elastalert
Commits
d733b842
Commit
d733b842
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Improve for updates
parent
26bbb7d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
handlers/main.yml
+12
-7
12 additions, 7 deletions
handlers/main.yml
tasks/install.yml
+12
-4
12 additions, 4 deletions
tasks/install.yml
with
24 additions
and
11 deletions
handlers/main.yml
+
12
−
7
View file @
d733b842
---
# file: roles/elastalert/handlers/main.yml
-
name
:
"
Add
ElastAlert
to
Boot-List"
systemd
:
name='elastalert'
state='started'
daemon_reload=yes
enabled=yes
-
name
:
"
ElastAlert
installation"
shell
:
'
{{
item
}}'
args
:
...
...
@@ -15,3 +8,15 @@
with_items
:
-
'
python
setup.py
install'
-
'
/usr/local/bin/elastalert-create-index
--host
"localhost"
--port
"9200"
--no-auth
--index
"elastalert_status"
--old-index
""'
-
name
:
"
Add
ElastAlert
to
Boot-List"
systemd
:
name='elastalert'
state='started'
daemon_reload=yes
enabled=yes
-
name
:
"
Restart
ElastAlert"
service
:
name='elastalert'
state='restarted'
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
12
−
4
View file @
d733b842
...
...
@@ -8,19 +8,28 @@
dest
:
'
/opt/elastalert'
force
:
yes
version
:
'
master'
notify
:
-
"
ElastAlert
installation"
-
"
Add
ElastAlert
to
Boot-List"
-
"
Restart
ElastAlert"
-
name
:
"
Install
PIP
Components"
pip
:
name='{{ item }}'
state='
presen
t'
state='
lates
t'
with_items
:
-
'
pip'
-
'
setuptools'
-
'
six'
notify
:
-
"
Restart
ElastAlert"
-
name
:
"
Install
PIP
Requirements"
pip
:
requirements='/opt/elastalert/requirements.txt'
state='latest'
notify
:
-
"
Restart
ElastAlert"
-
name
:
"
Ensure
Rules
Directory"
file
:
...
...
@@ -29,9 +38,6 @@
owner='root'
group='root'
mode='755'
notify
:
-
"
ElastAlert
installation"
-
"
Add
ElastAlert
to
Boot-List"
-
name
:
"
Configuration"
template
:
...
...
@@ -40,3 +46,5 @@
owner='root'
group='root'
mode='644'
notify
:
-
"
Restart
ElastAlert"
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