Deploy service using logscraper and logsender

With this commit, the deploy-services playbook will configure
logscraper01.openstack.org with new log workflow [1].

[1] https://review.opendev.org/c/openstack/ci-log-processing/+/832659

Change-Id: Ia305431279d74eb71e12d47adc2ecd5ff5698e3b
This commit is contained in:
Daniel Pawlik
2022-03-04 12:33:10 +01:00
parent 9d32d082e1
commit 25d3e5e2ce

View File

@@ -3,27 +3,26 @@
hosts: localhost
become: true
vars:
# gearman worker
gearman_host: 0.0.0.0
gearman_port: 4730
# gearman client
gearman_client_host: "{{ gearman_host }}"
gearman_client_port: "{{ gearman_port }}"
# NOTE(dpawlik): For security reasons, the logstash host
# address was added to /etc/hosts.
output_host: "logstash"
output_port: 9999
output_mode: tcp
# logscraper
# logscraper and logsender
tenant_builds:
- tenant: openstack
gearman_server: "{{ gearman_host }}"
gearman_port: "{{ gearman_port }}"
zuul_api_url: https://zuul.opendev.org/api/tenant/openstack
roles:
- loggearman
- logscraper
download: true
download_dir: /mnt/logscraper/openstack
es_username: logstash
# NOTE: password will be provided on the host until
# it is not automatized.
es_password: "mypassword"
es_host: opensearch.logs.openstack.org
es_port: 443
es_insecure: false
es_index_prefix: 'logstash-logs'
tasks:
- name: Run check services
include_role:
name: check-services
tasks_from: download.yml
- name: Install firewalld package
yum:
name: firewalld
@@ -35,14 +34,6 @@
state: started
enabled: true
- name: Configure firewalld for gearman
firewalld:
zone: internal
port: "{{ gearman_port }}/{{ output_mode }}"
state: enabled
permanent: true
immediate: true
- name: Expose Prometheus node exporter metrics for softwarefactory-project.io
firewalld:
rich_rule: 'rule family=ipv4 source address=38.102.83.250/32 port port=9100 protocol=tcp accept'