Merge branch 'main' of https://gitea.lyc-lecastel.fr/gadmin/gsb2023
This commit is contained in:
commit
e3694bb917
@ -45,7 +45,9 @@ str6="curl -L https://github.com/aelsabbahy/goss/releases/download/${GOSSVER}/go
|
|||||||
#str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
#str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
||||||
str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=3.2.30&type=gestsup' -O gestsup_3.2.30.zip"
|
str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=3.2.30&type=gestsup' -O gestsup_3.2.30.zip"
|
||||||
|
|
||||||
ELKREL=8.6.0
|
|
||||||
|
#METRICBEAT ET FILEBEAT
|
||||||
|
ELKREL=8.5.3
|
||||||
str81="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-amd64.deb"
|
str81="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-amd64.deb"
|
||||||
|
|
||||||
str82="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-windows-x86_64.zip"
|
str82="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-windows-x86_64.zip"
|
||||||
|
1
roles/filebeat-cli/defaults/main.yml
Normal file
1
roles/filebeat-cli/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
BEATVER: "8.5.3"
|
@ -1,4 +1,4 @@
|
|||||||
- name: start filebeat
|
- name: restart filebeat
|
||||||
service:
|
service:
|
||||||
name: filebeat
|
name: filebeat
|
||||||
state: started
|
state: started
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Récupération de filebeat
|
- name: Récupération de filebeat
|
||||||
get_url:
|
get_url:
|
||||||
url: http://s-adm.gsb.adm/gsbstore/filebeat-7.16.3-amd64.deb
|
url: http://s-adm.gsb.adm/gsbstore/filebeat-${BEATVAR}-amd64.deb
|
||||||
dest: /tmp/
|
dest: /tmp/
|
||||||
|
|
||||||
- name: Installation de filebeat
|
- name: Installation de filebeat
|
||||||
apt:
|
apt:
|
||||||
deb: /tmp/filebeat-7.16.3-amd64.deb
|
deb: /tmp/filebeat-${BEATVEAR}-amd64.deb
|
||||||
|
|
||||||
- name: Changement du fichier de conf
|
- name: Changement du fichier de conf
|
||||||
copy:
|
copy:
|
||||||
@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
- name: Configuration de filebeat
|
- name: Configuration de filebeat
|
||||||
shell: filebeat modules enable system
|
shell: filebeat modules enable system
|
||||||
notify: start filebeat
|
notify: restart filebeat
|
||||||
|
|
||||||
- name: Lancement de la configuration de filebeat
|
- name: Lancement de la configuration de filebeat
|
||||||
shell: filebeat setup -e
|
shell: filebeat setup -e
|
||||||
notify: start filebeat
|
notify: restart filebeat
|
||||||
|
|
||||||
|
1
roles/metricbeat-cli/defaults/main.yml
Normal file
1
roles/metricbeat-cli/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
BEATVER: "8.5.3"
|
@ -1,5 +1,5 @@
|
|||||||
- name: start metricbeat
|
- name: restart metricbeat
|
||||||
service:
|
service:
|
||||||
name: metricbeat
|
name: metricbeat
|
||||||
state: started
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Récupération de metricbeat
|
- name: Récupération de metricbeat
|
||||||
get_url:
|
get_url:
|
||||||
url: http://s-adm.gsb.adm/gsbstore/metricbeat-7.16.3-amd64.deb
|
url: http://s-adm.gsb.adm/gsbstore/metricbeat-${BEATVER}-amd64.deb
|
||||||
dest: /tmp/
|
dest: /tmp/
|
||||||
|
|
||||||
- name: Installation de metricbeat
|
- name: Installation de metricbeat
|
||||||
apt:
|
apt:
|
||||||
deb: /tmp/metricbeat-7.16.3-amd64.deb
|
deb: /tmp/metricbeat-${BEATVER}-amd64.deb
|
||||||
|
|
||||||
- name: Changement du fichier de conf
|
- name: Changement du fichier de conf
|
||||||
copy:
|
copy:
|
||||||
@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
- name: Configuration de metricbeat
|
- name: Configuration de metricbeat
|
||||||
shell: metricbeat modules enable system
|
shell: metricbeat modules enable system
|
||||||
notify: start metricbeat
|
notify: restart metricbeat
|
||||||
|
|
||||||
- name: Lancement de la configuration de metricbeat
|
- name: Lancement de la configuration de metricbeat
|
||||||
shell: metricbeat setup -e
|
shell: metricbeat setup -e
|
||||||
notify: start metricbeat
|
notify: restart metricbeat
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user