apolloclark.auditbeat

Ansible 角色:auditbeat

构建状态

该 Ansible 角色用于安装和配置 Elastic auditbeat,适用于:

  • Ubuntu 18.04 Bionic LTS
  • Ubuntu 16.04 Xenial LTS
  • Debian 10 Buster
  • Debian 9 Stretch
  • RHEL 8 UBI
  • RHEL 7 UBI
  • CentOS 7
  • Amazon Linux 2

需求

无。

角色变量

可用的变量在下面列出,并附有默认值(请参阅 vars/main-7.2.yml)。 您可以通过创建一个名为 "auditbeat" 的字典来重载变量,例如:

auditbeat:
  version: 7.3.0

依赖

无。

示例剧本

- hosts: all
  roles:
    - apolloclark.auditbeat

测试

# 运行所有测试,针对所有支持的操作系统
./travis_tests.sh



# 安装依赖,设置 pipenv
pip install --user pipenv
pipenv install -r test-requirements.txt --python 2.7

# 运行所有测试场景,默认使用 Ubuntu 18.04 Bionic
pipenv run molecule test --all

# 运行单个测试场景
pipenv run molecule test --scenario=[default]

# 构建特定环境,便于手动调试
pipenv run molecule converge
docker exec -it auditbeat-ubuntu_bionic /bin/bash
    cat /etc/os-release
    ps aux
    systemctl status auditbeat
    apt-get install -y net-tools curl nano
    ss -tlu | netstat -tunlp
    curl localhost:8080
    cd /var/log/auditbeat

许可

MIT / BSD

作者信息

该角色由 Apollo Clark 于2017年创建。

安装
ansible-galaxy install apolloclark.auditbeat
许可证
Unknown
下载
939
拥有者
The Winston Wolf of DevSecOps. I solve problems.