Commit 2d644e6d authored by Daniel Berman's avatar Daniel Berman
Browse files

Added Filbeat-Logz.io role

parent dd7d0b5f
---
#
# Installing Filebeat
#
# Download SSL certificate:
- name: Download certificate
shell: wget https://raw.githubusercontent.com/logzio/public-certificates/master/COMODORSADomainValidationSecureServerCA.crt
# Create directory for certification
- name: Make new directory for cert
shell: mkdir -p /etc/pki/tls/certs
# Move cert to directory
- name: Move SSL certification to new folder
shell: cp COMODORSADomainValidationSecureServerCA.crt /etc/pki/tls/certs/
# Install Filebeat
- name: Install Filebeat with apt
apt:
name: filebeat
update_cache: yes
# Replace Filebeat configuration to ship to Logz.io.
- name: Replace default filebeat.yml configurations
template:
src: filebeat.yml.j2
dest: /etc/filebeat/filebeat.yml
# Starting Filebeat
- name: Starting Filebeat
service:
name: filebeat
state: started
......@@ -3,34 +3,12 @@
# Installing Filebeat
#
# Download SSL certificate:
- name: Download certificate
shell: wget https://raw.githubusercontent.com/logzio/public-certificates/master/COMODORSADomainValidationSecureServerCA.crt
# Create directory for certification
- name: Make new directory for cert
shell: mkdir -p /etc/pki/tls/certs
# Move cert to directory
- name: Move SSL certification to new folder
shell: cp COMODORSADomainValidationSecureServerCA.crt /etc/pki/tls/certs/
# Install Filebeat
- name: Install Filebeat with apt
apt:
name: filebeat
update_cache: yes
# Replace Filebeat configuration to ship to Logz.io.
- name: Replace default filebeat.yml configurations
template:
src: filebeat.yml.j2
dest: /etc/filebeat/filebeat.yml
# Starting Filebeat
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment