Skip to content

Ansible Role to install and configure Vector.

License

Notifications You must be signed in to change notification settings

telekom-mms/ansible-vector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

publish

Vector ansible role

This is an ansible role to set up vector. It translates the YAML configuration to TOML, so any configuration is possible.

Currently only amd64, arch64, arch7 through deb and rpm packages are supported

Variables

Variable Required Default Description
vector_template yes vector.toml.j2 path of your vector.toml template
vector_config_file yes /etc/vector/vector.toml system path of your vector.toml configuration
vector_nightly no false use vector nightly build
add_vector_docker_group no false add user vector to group docker
add_vector_journal_group no false add user vector to group systemd-journal
vector_install_from_repo no false whether to install vector from packages or install from deb or redhat based repositories
vector_repo_key no https://repositories.timber.io/public/vector/gpg.3543DB2D0A2BC4B8.key configurable repo key, in case repo proxy is used
vector_repo no Debian: `deb https://repositories.timber.io/public/vector/deb/{{ ansible_distribution lower }} {{ ansible_lsb.codename
vector_package no vector option to define vector version with package name
sources yes false ingest observability data from a wide variety of targets link
transforms no false shape your data as it moves through your Vector topology link
sinks yes false deliver your observability data to a variety of destinations link

Example for configuration with ansible

sources:
  journald:
    type: journald
    current_boot_only: true

transforms:
  grok:
    type: grok_parser
    inputs:
      - journald
    pattern: '(?<capture>\\d+)%{GREEDYDATA}'

sinks:
  vector:
    type: vector
    inputs: ["journald"]
    address: "vector.example.com:9000"

Example playbook

- name: install and configure vector
  hosts: all
  vars:
    sources:
      journald:
        type: journald
        current_boot_only: true
    transforms:
      grok:
        type: grok_parser
        inputs:
          - journald
        pattern: '(?<capture>\\d+)%{GREEDYDATA}'
    sinks:
      vector:
        type: vector
        inputs: ["journald"]
        address: "vector.example.com:9000"
  roles:
    - vector

Packages

No packages published

Languages

  • Jinja 100.0%