set example config, add molecule verify assertion

This commit is contained in:
2022-08-05 09:50:09 +07:00
parent 066d6daa6a
commit c8bbbe4a4d
4 changed files with 25 additions and 11 deletions

View File

@@ -3,4 +3,24 @@ vector_version: 0.23.0
vector_config_dir: /var/lib/vector vector_config_dir: /var/lib/vector
vector_config: vector_config:
data_dir: "{{ vector_config_dir }}" data_dir: "{{ vector_config_dir }}"
# todo добавить конфигурацию https://vector.dev/docs/reference/configuration/ sources:
file_logs:
type: file
acknowledgements: null
ignore_older_secs: 600
include:
- /var/log/**/*.log
read_from: beginning
sinks:
clickhouse:
type: clickhouse
inputs:
- file_logs
database: mydatabase
endpoint: http://localhost:8123
table: mytable
acknowledgements: null
compression: gzip
encoding: null
healthcheck: null
skip_unknown_fields: null

View File

@@ -3,6 +3,7 @@
hosts: all hosts: all
gather_facts: false gather_facts: false
tasks: tasks:
- name: Example assertion - name: ensure vector service started
ansible.builtin.assert: ansible.builtin.service:
that: true name: vector
state: started

View File

@@ -1,2 +0,0 @@
localhost

View File

@@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- vector-role