mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 07:41:36 +01:00
fix: misc fixes for docker deployments opensearch/logstash
This commit is contained in:
@@ -258,6 +258,7 @@
|
|||||||
- gitea
|
- gitea
|
||||||
- gitea-runner
|
- gitea-runner
|
||||||
- atlantis-status
|
- atlantis-status
|
||||||
|
- logstash
|
||||||
|
|
||||||
- name: OAuth2Proxy directories
|
- name: OAuth2Proxy directories
|
||||||
file:
|
file:
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
services:
|
services:
|
||||||
runner:
|
runner:
|
||||||
image: gitea/act_runner:nightly
|
image: gitea/act_runner:nightly
|
||||||
|
|||||||
@@ -5,11 +5,29 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output {
|
output {
|
||||||
opensearch {
|
if [fields][container_logs] {
|
||||||
hosts => ["https://atlantishq.de:9200"]
|
opensearch {
|
||||||
index => "filebeat-dev-%{+YYYY.MM.dd}"
|
hosts => ["https://atlantishq.de:9200"]
|
||||||
ssl_certificate_verification => false
|
index => "filebeat-containers-dev-%{+YYYY.MM.dd}"
|
||||||
user => "logstash"
|
ssl_certificate_verification => false
|
||||||
password => "{{ opensearch_logstash_password }}"
|
user => "logstash"
|
||||||
|
password => "HISTORY_PURGED_SECRET"
|
||||||
|
}
|
||||||
|
}else if [fields][syslog] {
|
||||||
|
opensearch {
|
||||||
|
hosts => ["https://atlantishq.de:9200"]
|
||||||
|
index => "filebeat-syslog-dev-%{+YYYY.MM.dd}"
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
user => "logstash"
|
||||||
|
password => "HISTORY_PURGED_SECRET"
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
opensearch {
|
||||||
|
hosts => ["https://atlantishq.de:9200"]
|
||||||
|
index => "filebeat-dev-%{+YYYY.MM.dd}"
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
user => "logstash"
|
||||||
|
password => "HISTORY_PURGED_SECRET"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
logstash:
|
logstash:
|
||||||
|
restart: always
|
||||||
image: opensearchproject/logstash-oss-with-opensearch-output-plugin:8.9.0
|
image: opensearchproject/logstash-oss-with-opensearch-output-plugin:8.9.0
|
||||||
container_name: logstash
|
container_name: logstash
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -32,3 +32,12 @@
|
|||||||
loop: "{{ opensearch_data_nodes }}"
|
loop: "{{ opensearch_data_nodes }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: node_name
|
loop_var: node_name
|
||||||
|
|
||||||
|
- name: Deploy compose templates
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
remove_orphans: true
|
||||||
|
project_src: "/opt/{{ item }}/"
|
||||||
|
pull: "missing"
|
||||||
|
files:
|
||||||
|
- "{{ item }}.yaml"
|
||||||
|
with_items: "{{ opensearch_data_nodes + opensearch_dashboards }}"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
opensearch-dashboards:
|
opensearch-dashboards:
|
||||||
|
restart: always
|
||||||
image: opensearchproject/opensearch-dashboards:latest # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
|
image: opensearchproject/opensearch-dashboards:latest # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
|
||||||
container_name: opensearch-dashboards
|
container_name: opensearch-dashboards
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
opensearch-{{ node_name }}:
|
opensearch-{{ node_name }}:
|
||||||
|
restart: always
|
||||||
image: opensearchproject/opensearch:latest
|
image: opensearchproject/opensearch:latest
|
||||||
container_name: {{ node_name }}
|
container_name: {{ node_name }}
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user