filebeat metricbeat bonne version et instdepl aussi
This commit is contained in:
parent
c50ae995f3
commit
e9b0ad453b
@ -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=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"
|
||||
|
||||
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:
|
||||
name: filebeat
|
||||
state: started
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Récupération de filebeat
|
||||
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/
|
||||
|
||||
- name: Installation de filebeat
|
||||
apt:
|
||||
deb: /tmp/filebeat-7.16.3-amd64.deb
|
||||
deb: /tmp/filebeat-${BEATVEAR}-amd64.deb
|
||||
|
||||
- name: Changement du fichier de conf
|
||||
copy:
|
||||
@ -15,9 +15,9 @@
|
||||
|
||||
- name: Configuration de filebeat
|
||||
shell: filebeat modules enable system
|
||||
notify: start filebeat
|
||||
notify: restart filebeat
|
||||
|
||||
- name: Lancement de la configuration de filebeat
|
||||
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:
|
||||
name: metricbeat
|
||||
state: started
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Récupération de metricbeat
|
||||
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/
|
||||
|
||||
- name: Installation de metricbeat
|
||||
apt:
|
||||
deb: /tmp/metricbeat-7.16.3-amd64.deb
|
||||
deb: /tmp/metricbeat-${BEATVER}-amd64.deb
|
||||
|
||||
- name: Changement du fichier de conf
|
||||
copy:
|
||||
@ -15,9 +15,9 @@
|
||||
|
||||
- name: Configuration de metricbeat
|
||||
shell: metricbeat modules enable system
|
||||
notify: start metricbeat
|
||||
notify: restart metricbeat
|
||||
|
||||
- name: Lancement de la configuration de metricbeat
|
||||
shell: metricbeat setup -e
|
||||
notify: start metricbeat
|
||||
notify: restart metricbeat
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user