re-factoring
This commit is contained in:
parent
4cd581fc14
commit
9bdf32ba2a
@ -25,7 +25,7 @@ $ eval "$(ssh-agent -s)"
|
|||||||
$ ssh-add ~/.ssh/id_rsa_ansible
|
$ ssh-add ~/.ssh/id_rsa_ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
Copy ~/.ssh/id_rsa_ansible.pub content into the .ssh/authorized_keys host where you want to deploy OSSEC Agents in.
|
Copy ~/.ssh/id_rsa_ansible.pub content into the .ssh/authorized_keys host where you want to deploy Wazuh Agents in.
|
||||||
|
|
||||||
|
|
||||||
## Configuring Ansible Hosts
|
## Configuring Ansible Hosts
|
||||||
@ -55,7 +55,7 @@ Add destination hosts:
|
|||||||
|
|
||||||
```
|
```
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://github.com/wazuh/wazuh-playbook/
|
git clone https://github.com/wazuh/wazuh-ansible/
|
||||||
cp -pr wazuh-playbook/* /etc/ansible/roles/
|
cp -pr wazuh-playbook/* /etc/ansible/roles/
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ Create in your home o preferred folder the file agent.yml with the content:
|
|||||||
```
|
```
|
||||||
- hosts: all:!wazuh-manager
|
- hosts: all:!wazuh-manager
|
||||||
roles:
|
roles:
|
||||||
- { role: ansible-wazuh-agent, ossec_server_ip: 10.0.0.51 }
|
- { role: ansible-wazuh-agent, wazuh_manager_ip: 10.0.0.51 }
|
||||||
```
|
```
|
||||||
|
|
||||||
and other file with wazuh-manager.yml with the content:
|
and other file with wazuh-manager.yml with the content:
|
||||||
@ -114,5 +114,3 @@ https://github.com/dj-wasabi/ansible-ossec-server
|
|||||||
### Modified by Wazuh
|
### Modified by Wazuh
|
||||||
|
|
||||||
The playbooks have been modified by Wazuh, including some specific requirements, templates and configuration to improve integration with Wazuh ecosystem.
|
The playbooks have been modified by Wazuh, including some specific requirements, templates and configuration to improve integration with Wazuh ecosystem.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
- hosts: wazuh-manager
|
- hosts: wazuh-manager
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-wazuh-manager
|
- role: ansible-wazuh-manager
|
||||||
- { role: ansible-role-filebeat, filebeat_output_logstash_hosts: '192.168.212.187:5000' }
|
- { role: ansible-role-filebeat, filebeat_output_logstash_hosts: '192.168.212.185:5000' }
|
||||||
- hosts: elastic_stack
|
- hosts: elastic_stack
|
||||||
roles:
|
roles:
|
||||||
- { role: ansible-role-elasticsearch, elasticsearch_network_host: 'localhost' }
|
- { role: ansible-role-elasticsearch, elasticsearch_network_host: 'localhost' }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user