Compare commits

...

6 Commits

Author SHA1 Message Date
151c0adf88 elk-filebeat-cli filebeat.yml 2024-01-26 15:48:18 +01:00
745bc05e76 Merge branch 'main' of https://gitea.lyc-lecastel.fr/gsb/gsb2024 2024-01-26 15:00:44 +01:00
82561d5d0a update gotify.sh 2024-01-26 14:59:57 +01:00
df1000e1b5 modif droit copie cle privee 2024-01-26 14:55:25 +01:00
0824fd9621 update 2024-01-26 14:22:09 +01:00
3c680769be update zabbix-srv pour gotify 2024-01-26 14:15:31 +01:00
8 changed files with 36 additions and 14 deletions

View File

@ -1 +1 @@
BEATVER: "8.11.5" BEATVER: "8.11.4"

View File

@ -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

View File

@ -16,5 +16,5 @@
copy: copy:
src: /root/id_rsa_sbackup src: /root/id_rsa_sbackup
dest: /var/www/html/gsbstore dest: /var/www/html/gsbstore
mode: 0600 mode: 0644
remote_src: yes remote_src: yes

View File

@ -1,3 +1,3 @@
SERVER: "127.0.0.1" SERVER: "127.0.0.1"
SERVERACTIVE: "192.168.99.8" SERVERACTIVE: "192.168.99.8"
TOKENAPI: "f72473b7e5402a5247773e456f3709dcdd5e41792360108fc3451bbfeed8eafe" TOKENAPI: "132f64040b397f8300ad2304d633e0ef3ec820e99f5e151074e53b097d649814"

View File

@ -33,6 +33,6 @@
src: hostcreate.sh.j2 src: hostcreate.sh.j2
dest: /tmp/hostcreate.sh dest: /tmp/hostcreate.sh
#- name: lancement script hostcreate - name: lancement script hostcreate
#command: bash /tmp/hostcreate.sh command: bash /tmp/hostcreate.sh

View File

@ -0,0 +1,7 @@
#!/bin/bash
ALERTSENDTO=$1
ALERTSUBJECT=$2
ALERTMESSAGE=$3
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

View File

@ -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