Compare commits
3 Commits
v0.0.6w-cm
...
v0.0.6z-ps
Author | SHA1 | Date | |
---|---|---|---|
|
151c0adf88 | ||
|
745bc05e76 | ||
|
82561d5d0a |
@@ -1 +1 @@
|
|||||||
BEATVER: "8.11.5"
|
BEATVER: "8.11.4"
|
||||||
|
@@ -1,17 +1,31 @@
|
|||||||
---
|
---
|
||||||
- name: Récupération de filebeat
|
- name: Récupération de filebeat
|
||||||
get_url:
|
get_url:
|
||||||
url: http://s-adm.gsb.adm/gsbstore/filebeat-${BEATVAR}-amd64.deb
|
url: "http://s-adm.gsb.adm/gsbstore/filebeat-{{ BEATVER }}-amd64.deb"
|
||||||
dest: /tmp/
|
dest: /tmp/
|
||||||
|
|
||||||
- name: Installation de filebeat
|
- name: Installation de filebeat
|
||||||
apt:
|
apt:
|
||||||
deb: /tmp/filebeat-${BEATVEAR}-amd64.deb
|
deb: "/tmp/filebeat-{{ BEATVER }}-amd64.deb"
|
||||||
|
|
||||||
- name: Changement du fichier de conf
|
- name: Chgt filebeat.yml - localhost:9200 - Elastic
|
||||||
copy:
|
replace:
|
||||||
src: filebeat.yml
|
path: /etc/filebeat/filebeat.yml
|
||||||
dest: /etc/filebeat/filebeat.yml
|
regexp: 'localhost:9200'
|
||||||
|
replace: 's-elk.gsb.adm:9200'
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
- name: Chgt filebeat.yml - localhost:5601 - Kibana
|
||||||
|
replace:
|
||||||
|
path: /etc/filebeat/filebeat.yml
|
||||||
|
regexp: 'localhost:5601'
|
||||||
|
replace: 's-elk.gsb.adm:5601'
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
#- name: Changement du fichier de conf
|
||||||
|
# copy:
|
||||||
|
# src: filebeat.yml
|
||||||
|
# dest: /etc/filebeat/filebeat.yml
|
||||||
|
|
||||||
- name: Configuration de filebeat
|
- name: Configuration de filebeat
|
||||||
shell: filebeat modules enable system
|
shell: filebeat modules enable system
|
||||||
|
@@ -4,4 +4,4 @@ ALERTSENDTO=$1
|
|||||||
ALERTSUBJECT=$2
|
ALERTSUBJECT=$2
|
||||||
ALERTMESSAGE=$3
|
ALERTMESSAGE=$3
|
||||||
|
|
||||||
curl -X POST "http://s-backup.gsb.adm/message?token=$ALERTSENDTO" -F "title=$ALERTSUBJECT" -F "message=$ALERTMESSAGE" -F "priority=5" > /dev/null 2>&1
|
curl -X POST "http://s-backup.gsb.adm:8008/message?token=$ALERTSENDTO" -F "title=$ALERTSUBJECT" -F "message=$ALERTMESSAGE" -F "priority=5" > /dev/null 2>&1
|
||||||
|
@@ -4,11 +4,12 @@
|
|||||||
# include: config.yml
|
# include: config.yml
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- zabbix-cli
|
# - zabbix-cli
|
||||||
- goss
|
- goss
|
||||||
- dns-master
|
- dns-master
|
||||||
- webautoconf
|
- webautoconf
|
||||||
- journald-snd
|
- elk-filebeat-cli
|
||||||
|
# - journald-snd
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user