buluma.vector

Ansible 角色 vector

Vector 角色

GitHub 版本 问题 拉取请求 下载
github 版本 问题 拉取请求 Ansible 角色

示例剧本

此示例来自 molecule/default/converge.yml,在每次推送、拉取请求和发布时进行测试。

---
- name: 集成
  hosts: all
  gather_facts: false
  roles:
    - role: buluma.vector

需要准备机器。在 CI 中,这通过 molecule/default/prepare.yml 完成:

---
- name: 准备
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: buluma.bootstrap
    - role: buluma.ca_certificates

更多使用这些角色的完整说明和示例,请参见 这里

角色变量

默认变量值设置在 defaults/main.yml 中:

---
# https://github.com/idealista/vector_role/blob/main/.ansible-lint
## 一般
# 版本
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"

# 设置为 true 以强制下载和安装软件包
vector_force_reinstall: false

# 路径
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([]) }}"

## 服务选项
# 文档
vector_documentation_link: "https://vector.dev/docs/about/what-is-vector/"

# 拥有者
vector_user: vector
vector_group: vector
# 可能需要为用户 vector 添加一些额外的组
# vector_groups: []

# 开机启动
vector_service_enabled: true
# 当前状态: started, stopped
vector_service_state: started

# 日志
# 如果希望将日志输出到文件,请定义以下变量
# 更多信息请访问 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

要求

使用的角色状态

以下角色用于准备系统。您可以使用其他方式准备系统。

要求 GitHub 版本
buluma.bootstrap Ansible Molecule 版本
buluma.ca_certificates Ansible Molecule 版本

上下文

该角色是许多兼容角色的一部分。有关更多信息,请查看 这些角色的文档

以下是相关角色的概览:

依赖关系

兼容性

此角色已在以下 容器镜像 上进行测试:

容器 标签
Debian 全部
Ubuntu 全部

所需的最低 Ansible 版本为 2.12,测试已在:

  • 先前版本。
  • 当前版本。
  • 开发版本。

如果您发现问题,请在 GitHub 中注册。

更新日志

角色历史

许可

Apache-2.0

作者信息

Shadow Walker

安装
ansible-galaxy install buluma.vector
许可证
apache-2.0
下载
16.5k
拥有者
DevOps Engineer