mirror of
https://github.com/Dannecron/netology-devops-ansible-vector.git
synced 2025-12-25 14:32:34 +03:00
set example config, add molecule verify assertion
This commit is contained in:
@@ -3,4 +3,24 @@ vector_version: 0.23.0
|
||||
vector_config_dir: /var/lib/vector
|
||||
vector_config:
|
||||
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
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Example assertion
|
||||
ansible.builtin.assert:
|
||||
that: true
|
||||
- name: ensure vector service started
|
||||
ansible.builtin.service:
|
||||
name: vector
|
||||
state: started
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
localhost
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- vector-role
|
||||
Reference in New Issue
Block a user