https://github.com/fluential/wazuhenc
Puppet external node classifier for distributing wazuh ossec agent IDs
https://github.com/fluential/wazuhenc
Last synced: about 2 months ago
JSON representation
Puppet external node classifier for distributing wazuh ossec agent IDs
- Host: GitHub
- URL: https://github.com/fluential/wazuhenc
- Owner: fluential
- Created: 2018-10-18T10:35:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T10:42:36.000Z (over 7 years ago)
- Last Synced: 2025-03-17T15:57:50.149Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Wazuh Ossec Puppet external node classifier
Related to https://github.com/wazuh/wazuh-puppet
When distiburing agent keys via puppet, the id generated by fqdn_rand() are not unique.
With large number of hosts there are id conflicts.
This puppet external node classifier is simple python list that provides
hostname unique ids in default wazuh range: 1 - 14000 to be used by puppet module
### Installation
1. Drop file into ```/var/lib/puppet/wazuhenc.py```
2. Add to your puppet master config file ```puppet.conf```:
##### On master
```
[master]
(...)
node_terminus = exec
external_nodes = /usr/bin/flock -w 5 /var/lib/puppet/wazuhenc.lock /var/lib/puppet/wazuhenc.py
```
##### On Client
Include the code
```
class { '::wazuh::client':
agent_name => $::fqdn,
agent_id => $::ossec_agent_id,
(...)
}
```