Code Monkey home page Code Monkey logo

ansible-ossec-agent's Introduction

Hi there ๐Ÿ‘‹

I am a nerd and likes to automate things to make my life easier. Mostly specific to Ansible, Zabbix and Kubernetes, but there are a lot of interesting technologies out there!

If you like my work and/or need some help, please take a look at my sponsor page, Patreon or buy me a coffee.

Anurag's github stats

Zabbix
Ansible coummunity.zabbix zabbix-agent zabbix-server zabbix-proxy zabbix-web zabbix-javagateway
Puppet voxpopuli-zabbix
Kubernetes/HELM helm-zabbix
Ossec Personal
Ansible ossec-server ossec-agent dj-wasabi-release pre-commit-hooks

ansible-ossec-agent's People

Contributors

aarnaud avatar andskli avatar dj-wasabi avatar emmetog avatar recunius avatar zeroem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-ossec-agent's Issues

Deb repository doesn't contain bionic

Describe the bug
When running this role on Ubuntu 18.04.5 LTS (bionic) the installation fails:

TASK [ossec-agent : Debian/Ubuntu | Installing repository] **********************************************
fatal: [<<redacted>>]: FAILED! => {"changed": false, "msg": "apt cache update failed"}

Trying to add the repository manually gives "Access Denied". From a quick look it seems like this is because this repo doesn't support bionic.

The dj-wasabi/ansible-ossec-server role uses https://updates.atomicorp.com/channels/atomic/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} while this role uses http://ossec.wazuh.com/repos/apt/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}.

I suggest using atomicorp.com instead as it seems to work fine for bionic, or even better: make this repository url and key configurable.

Installation method/version
Installed the role using an ansible galaxy requirements file as follows:

- src: dj-wasabi.ossec-agent
  name: "ossec-agent"
  version: master

Actual commit used is 6c29671c64909b9e0feb0e202cd8a00258a81187 (latest master at the time)

Ansible Version

ansible 2.9.6
  config file = /home/emmet/code/<<redacted>>/ansible.cfg
  configured module search path = ['/home/emmet/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]

Targetted hosts
Concerns the following OS(es):

  • Ubuntu 18.04.5 LTS (bionic)

Expected behavior
The install to be successful.

Additional context
If any more info is needed just ask.

Add check if repository is already installed

Hello,

if I run the playbook again on a host, the repository is added again everytime, resulting in duplicate entry warnings (Debian). Maybe there should be some check for that?

Thank you

Add Ubuntu support

Hello,

it would be great if this extension could get Ubuntu support as well. Basically the only change that needs to be made is to replace "debian" in this line with "ubuntu" if Ubuntu is detected:

deb http://ossec.alienvault.com/repos/apt/ubuntu trusty main

Move to Wazuh

Hello,

First awesome work, thank for your contribution with Ossec community.
I have a quick question, any thought to move to Wazuh?

https://github.com/wazuh/wazuh/blob/master/CHANGELOG.md

The last version has a new improvements and tools as for example Openscap and Auditd integration.

I can help with the code here.

regards!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.