Skip to content
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

include template local_internal_options.conf #87

Merged
merged 4 commits into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.

- clean old code for windows agent ([#86](https://github.com/wazuh/wazuh-ansible/pull/86))

- include template local_internal_options.conf ([#87](https://github.com/wazuh/wazuh-ansible/pull/87))

## v3.7.0-3701

Expand Down
11 changes: 11 additions & 0 deletions roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@
- init
- config

- name: Linux | Installing local_internal_options.conf
template: src=var-ossec-etc-local-internal-options.conf.j2
dest=/var/ossec/etc/local_internal_options.conf
owner=root
group=ossec
mode=0640
notify: restart wazuh-agent
tags:
- init
- config

- name: Linux | Ensure Wazuh Agent service is started and enabled
service:
name: wazuh-agent
Expand Down
8 changes: 8 additions & 0 deletions roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
tags:
- config

- name: Windows | Installing local_internal_options.conf
win_template:
src: var-ossec-etc-local-internal-options.conf.j2
dest: "{{ wazuh_winagent_config.install_dir }}local_internal_options.conf"
notify: restart wazuh-agent windows
tags:
- config

- name: Windows | Delete downloaded Wazuh agent installer file
win_file:
path: C:\wazuh-agent-installer.msi
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# local_internal_options.conf
#
# This file should be handled with care. It contains
# run time modifications that can affect the use
# of OSSEC. Only change it if you know what you
# are doing. Look first at ossec.conf
# for most of the things you want to change.
#
# This file will not be overwritten during upgrades.

# This is the template of Ansible for the file local_internal_options.conf
# In this file you could include the configuration settings for your agents
11 changes: 11 additions & 0 deletions roles/wazuh/ansible-wazuh-manager/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@
- init
- config

- name: Installing the local_internal_options.conf
template: src=var-ossec-etc-local-internal-options.conf.j2
dest=/var/ossec/etc/local_internal_options.conf
owner=root
group=ossec
mode=0640
notify: restart wazuh-manager
tags:
- init
- config

- name: Retrieving Agentless Credentials
include_vars: agentless_creeds.yml
tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# local_internal_options.conf
#
# This file should be handled with care. It contains
# run time modifications that can affect the use
# of OSSEC. Only change it if you know what you
# are doing. Look first at ossec.conf
# for most of the things you want to change.
#
# This file will not be overwritten during upgrades.

# This is the template of Ansible for the file local_internal_options.conf
# In this file you could include the configuration settings for your manager