mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 17:41:36 +01:00
add: logstash
This commit is contained in:
@@ -78,6 +78,7 @@
|
|||||||
- gitea
|
- gitea
|
||||||
- gitea-runner
|
- gitea-runner
|
||||||
- atlantis-status
|
- atlantis-status
|
||||||
|
- logstash
|
||||||
|
|
||||||
- name: Copy AtlantisHub config
|
- name: Copy AtlantisHub config
|
||||||
copy:
|
copy:
|
||||||
@@ -104,6 +105,29 @@
|
|||||||
src: "grafana.ini"
|
src: "grafana.ini"
|
||||||
dest: "/data/grafana/grafana.ini"
|
dest: "/data/grafana/grafana.ini"
|
||||||
|
|
||||||
|
- name: create_logstash_data_dirs
|
||||||
|
file:
|
||||||
|
name: "/data/logstash/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- "config"
|
||||||
|
- "pipeline"
|
||||||
|
|
||||||
|
- name: copy_logstash_config
|
||||||
|
template:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "/data/logstash/config/"
|
||||||
|
with_items:
|
||||||
|
- "logstash.yml"
|
||||||
|
- "pipelines.yml"
|
||||||
|
|
||||||
|
- name: copy_logstash_pipeline_config
|
||||||
|
template:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "/data/logstash/pipeline/"
|
||||||
|
with_items:
|
||||||
|
- "logstash.conf"
|
||||||
|
|
||||||
- name: copy_atlantis_status_services
|
- name: copy_atlantis_status_services
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.yaml"
|
src: "{{ item }}.yaml"
|
||||||
@@ -141,6 +165,7 @@
|
|||||||
- gitea
|
- gitea
|
||||||
- gitea-runner
|
- gitea-runner
|
||||||
- atlantis-status
|
- atlantis-status
|
||||||
|
- logstash
|
||||||
|
|
||||||
- name: Copy compose templates
|
- name: Copy compose templates
|
||||||
template:
|
template:
|
||||||
@@ -170,6 +195,7 @@
|
|||||||
- gitea
|
- gitea
|
||||||
- gitea-runner
|
- gitea-runner
|
||||||
- atlantis-status
|
- atlantis-status
|
||||||
|
- logstash
|
||||||
|
|
||||||
- name: create sites-enabled dir
|
- name: create sites-enabled dir
|
||||||
file:
|
file:
|
||||||
|
|||||||
15
roles/docker-deployments/templates/logstash.conf
Normal file
15
roles/docker-deployments/templates/logstash.conf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
input {
|
||||||
|
beats {
|
||||||
|
port => 5044
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
output {
|
||||||
|
opensearch {
|
||||||
|
hosts => ["https://atlantishq.de:9200"]
|
||||||
|
index => "filebeat-dev-%{+YYYY.MM.dd}"
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
user => "logstash"
|
||||||
|
password => "{{ opensearch_logstash_password }}"
|
||||||
|
}
|
||||||
|
}
|
||||||
12
roles/docker-deployments/templates/logstash.yaml
Normal file
12
roles/docker-deployments/templates/logstash.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
logstash:
|
||||||
|
image: opensearchproject/logstash-oss-with-opensearch-output-plugin:8.9.0
|
||||||
|
container_name: logstash
|
||||||
|
ports:
|
||||||
|
- "5044:5044"
|
||||||
|
volumes:
|
||||||
|
- /data/logstash/config:/usr/share/logstash/config
|
||||||
|
- /data/logstash/pipeline:/usr/share/logstash/pipeline
|
||||||
|
environment:
|
||||||
|
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
|
||||||
2
roles/docker-deployments/templates/logstash.yml
Normal file
2
roles/docker-deployments/templates/logstash.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
http.host: "0.0.0.0"
|
||||||
|
#xpack.monitoring.enabled: false
|
||||||
2
roles/docker-deployments/templates/pipelines.yml
Normal file
2
roles/docker-deployments/templates/pipelines.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
- pipeline.id: main
|
||||||
|
path.config: "/usr/share/logstash/pipeline/logstash.conf"
|
||||||
Reference in New Issue
Block a user