mirror of
https://github.com/Dannecron/netology-devops-ansible-vector.git
synced 2025-12-25 22:42: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_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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
localhost
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
remote_user: root
|
|
||||||
roles:
|
|
||||||
- vector-role
|
|
||||||
Reference in New Issue
Block a user