nephelaiio.packetbeat
nephelaiio.packetbeat
这是一个用于安装和配置 Packetbeat 的 Ansible 角色。
角色变量
请参考 默认文件 获取最新的输入参数列表。
依赖关系
有关更多信息,请查看 依赖配置。
示例剧本
- hosts: servers
vars:
packetbeat_package_state: latest
packetbeat_conf_manage: yes
packetbeat_conf:
packetbeat:
monitors:
- type: http
schedule: '*/1 * * * * * *'
urls:
- "https://www.google.com"
- "https://www.amazon.com"
output:
elasticsearch:
enabled: true
hosts:
- http://localhost:9200
setup:
dashboards:
enabled: true
beat: packetbeat
always_kibana: true
template:
enabled: true
kibana:
host: http://localhost:80
roles:
- role: nephelaiio.packetbeat
测试
请确保你的环境中安装了 docker 以运行角色验证测试。其他 Python 依赖项列在 要求文件 中。
该角色在以下发行版(Docker 镜像)上进行测试:
- Ubuntu Jammy
- Ubuntu Focal
- Debian Bookworm
- Ubuntu Bullseye
- Rocky Linux 9
你可以直接从源代码使用命令 make test
来测试该角色。
许可证
本项目根据 MIT 许可证 授权。
安装
ansible-galaxy install nephelaiio.packetbeat
许可证
mit
下载
23.3k
拥有者