vscoder / ansible-role-vector

Install and configure vector agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-role-vector

This role installs and configures vector agent https://vector.dev/

Requirements

See requirements.txt

Role Variables

See defaults

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-vector
      vector_configure_sources:
        { vector sources dict }
      vector_configure_sinks:
        { vector sinks dict }

Test

Install requirements using virtualenv:

# Create and activate virtualenv
python3 -m venv .venv
sournce ./.venv/bin/activate
# Install requirements inside of virtualenv
python3 -m pip install -r requirements.txt

Test on Ubuntu 18.04 with vagrant

molecule test

Test on CentOS 7 with docker

molecule test --scenario-name docker

Makefile targets

Target Description
install_ansible_venv install ansible into local .venv using python3 -m venv
install_ansible_virtualenv install ansible into local .venv using virtualenv
molecule_init_scenario create scenario named MOLECULE_SCENARIO?=default using driver MOLECULE_DRIVER?=vagrant and role name MOLECULE_ROLE_NAME?=<current directory basename>
molecule_static_analyse execute molecule lint and molecule syntax
molecule_create create molecule instances via molecule create
molecule_verify apply playbook to existent instance and run tests (converge and verify)
molecule_test run molecule test complex testing
molecule_destroy force destroy instances molecule destroy -f

License

MIT

Author Information

Aleksey Koloskov aka vscoder

About

Install and configure vector agent


Languages

Language:Makefile 54.9%Language:HTML 45.1%