vector
Ansible role vector
Vector Role
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example is taken from molecule/default/converge.yml
and is tested on each push, pull request and release.
---
- name: Converge
hosts: all
gather_facts: false
roles:
- role: buluma.vector
The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
- role: buluma.ca_certificates
Also see a full explanation and example on how to use these roles.
Role Variables
The default values for the variables are set in defaults/main.yml
:
---
# https://github.com/idealista/vector_role/blob/main/.ansible-lint
## General
# Version
vector_version: "0.29.1"
vector_package_architecture: amd64
# Deb
vector_deb_package: "https://packages.timber.io/vector/{{ vector_version }}/vector_{{ vector_version }}-1_{{ vector_package_architecture }}.deb"
# Set true to force the download and installation of the package
vector_force_reinstall: false
# Paths
vector_exec_name: vector
vector_env_path: "/etc/default/vector"
vector_bin_path: "/usr/bin/{{ vector_exec_name }}"
vector_config_path: "/etc/vector"
vector_skeleton_paths_base:
- "{{ vector_config_path }}"
vector_skeleton_paths: "{{ vector_skeleton_paths_base + vector_skeleton_paths_extend | default([]) }}"
## Service options
# Documentation
vector_documentation_link: "https://vector.dev/docs/about/what-is-vector/"
# Owner
vector_user: vector
vector_group: vector
# Maybe you will need some extra groups for user vector
# vector_groups: []
# Start on boot
vector_service_enabled: true
# Current state: started, stopped
vector_service_state: started
# Logs
# If wanted to output the logs to a file define the following variable
# More information at https://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardOutput=
vector_log_output: journal
# vector_log_output_stdout:
# vector_log_output_stderr:
vector_config_template_path: "templates/config/"
vector_service_template_path: "vector.service.j2"
# vector_config_files: # https://vector.dev/docs/reference/configuration/#multiple-files
# - "{{ vector_config_path }}/*.toml"
# - "{{ vector_config_path }}/*.yml"
vector_configs_folder: "{{ vector_config_path }}" # https://vector.dev/docs/reference/configuration/#automatic-namespacing
vector_data_dir: "/var/lib/vector"
# vector_syslog_identifier: vector
Requirements
- pip packages listed in requirements.txt.
State of used roles
The following roles are used to prepare a system. You can prepare your system in another way.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.ca_certificates |
Context
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
Compatibility
This role has been tested on these container images:
container | tags |
---|---|
Debian | all |
Ubuntu | all |
The minimum version of Ansible required is 2.12, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub
Changelog
License
Author Information
ansible-galaxy install buluma/ansible-role-vector