New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download shared files for agent groups dinamically #519
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This PR is related to issue #468. |
Build OpenSSL as shared.
vikman90
force-pushed
the
dev-download-shared-files
branch
2 times, most recently
from
April 26, 2018 08:35
6413dba
to
7d17d78
Compare
vikman90
force-pushed
the
dev-download-shared-files
branch
from
April 26, 2018 08:36
7d17d78
to
544efa3
Compare
…tmp folder, downloads are forced inside DEFAULTDIR
vikman90
force-pushed
the
dev-download-shared-files
branch
from
April 27, 2018 09:36
3a15325
to
9641e43
Compare
vikman90
force-pushed
the
dev-download-shared-files
branch
from
April 28, 2018 03:25
9650a76
to
21ecb93
Compare
vikman90
force-pushed
the
dev-download-shared-files
branch
4 times, most recently
from
April 28, 2018 23:38
b373b09
to
f0ae62e
Compare
vikman90
force-pushed
the
dev-download-shared-files
branch
from
April 28, 2018 23:43
f0ae62e
to
80dead6
Compare
|
vikman90
approved these changes
Apr 29, 2018
vikman90
changed the title
Implemented feature for downloading shared files for multiple groups …
Download shared files for agent groups dinamically
May 1, 2018
Hi guys, That syntax is not YML:
In addition, it is not descriptive:
Example: group-configurations:
- name: group-default
download_files:
- name: agent.conf
url: http://example.com/agent.conf
- name: rootcheck.txt
url: https://example.com/rootcheck.txt
download_merge: http://example.com/merged.mg
poll: 15
- name: group-mygroup2
download_files:
- name: agent.conf
url: http://example.com/agent.conf
poll: 200
group-assignments:
- agent_id: 001
group: default
- agent_id: 002
group: group_test Regards, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…and agents.
To use this new feature put a "files.yml" inside /var/ossec/etc/shared
This file will be parsed every time we restart the manager.
An example of the files.yml file:
If a group contains merged.mg file the manager will push it to the agents belonging to the specified group.
In the agents: section we can assign a group to specific agents if the group the belong is the "default" group.
For example when we register an agent at first it belongs to the default group. If we assign the agent to another group in the agents: section, the configuration for that group will be pushed to that agent.
If we have errors on the yaml file, we can spot them by looking at the /var/ossec/logs/ossec.log file