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:
@@ -3,27 +3,26 @@
|
|||||||
hosts: localhost
|
hosts: localhost
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
# gearman worker
|
# logscraper and logsender
|
||||||
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
|
|
||||||
tenant_builds:
|
tenant_builds:
|
||||||
- tenant: openstack
|
- tenant: openstack
|
||||||
gearman_server: "{{ gearman_host }}"
|
|
||||||
gearman_port: "{{ gearman_port }}"
|
|
||||||
zuul_api_url: https://zuul.opendev.org/api/tenant/openstack
|
zuul_api_url: https://zuul.opendev.org/api/tenant/openstack
|
||||||
roles:
|
download: true
|
||||||
- loggearman
|
download_dir: /mnt/logscraper/openstack
|
||||||
- logscraper
|
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:
|
tasks:
|
||||||
|
- name: Run check services
|
||||||
|
include_role:
|
||||||
|
name: check-services
|
||||||
|
tasks_from: download.yml
|
||||||
|
|
||||||
- name: Install firewalld package
|
- name: Install firewalld package
|
||||||
yum:
|
yum:
|
||||||
name: firewalld
|
name: firewalld
|
||||||
@@ -35,14 +34,6 @@
|
|||||||
state: started
|
state: started
|
||||||
enabled: true
|
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
|
- name: Expose Prometheus node exporter metrics for softwarefactory-project.io
|
||||||
firewalld:
|
firewalld:
|
||||||
rich_rule: 'rule family=ipv4 source address=38.102.83.250/32 port port=9100 protocol=tcp accept'
|
rich_rule: 'rule family=ipv4 source address=38.102.83.250/32 port port=9100 protocol=tcp accept'
|
||||||
|
|||||||
Reference in New Issue
Block a user