-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #831 from wazuh/2796-provisioning-tool-4.4
Automatic Provisioning: Adapt roles and increase os support - 4.4
- Loading branch information
Showing
16 changed files
with
199 additions
and
29 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Download agent package | ||
get_url: | ||
url: "{{ wazuh_custom_packages_installation_agent_macos_url }}" | ||
dest: /Users/vagrant | ||
validate_certs: no | ||
|
||
- include_tasks: "installation_from_custom_packages.yml" | ||
when: wazuh_custom_packages_installation_agent_enabled |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: Download agent package | ||
get_url: | ||
url: "{{ wazuh_custom_packages_installation_agent_solaris_url }}" | ||
dest: /export/home/vagrant | ||
validate_certs: no | ||
|
||
- include_tasks: "installation_from_custom_packages.yml" | ||
when: wazuh_custom_packages_installation_agent_enabled |
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 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 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 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 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 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 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
32 changes: 32 additions & 0 deletions
32
roles/wazuh/wazuh-dashboard/tasks/install_from_custom_package.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- block: | ||
- name: Install Wazuh Dashboard from .deb packages | ||
apt: | ||
deb: "{{ wazuh_custom_packages_installation_dashboard_deb_url }}" | ||
state: present | ||
when: | ||
- wazuh_custom_packages_installation_dashboard_enabled | ||
when: | ||
- ansible_os_family|lower == "debian" | ||
|
||
- block: | ||
- name: Install Wazuh Dashboard from .rpm packages | yum | ||
yum: | ||
name: "{{ wazuh_custom_packages_installation_dashboard_rpm_url }}" | ||
state: present | ||
when: | ||
- wazuh_custom_packages_installation_dashboard_enabled | ||
- not (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8") | ||
- not (ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8") | ||
|
||
- name: Install Wazuh Dashboard from .rpm packages | dnf | ||
dnf: | ||
name: "{{ wazuh_custom_packages_installation_dashboard_rpm_url }}" | ||
state: present | ||
disable_gpg_check: True | ||
when: | ||
- wazuh_custom_packages_installation_dashboard_enabled | ||
- (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8") or | ||
(ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8") | ||
when: | ||
- ansible_os_family|lower == "redhat" |
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 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 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
32 changes: 32 additions & 0 deletions
32
roles/wazuh/wazuh-indexer/tasks/install_from_custom_package.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- block: | ||
- name: Install Wazuh Indexer from .deb packages | ||
apt: | ||
deb: "{{ wazuh_custom_packages_installation_indexer_deb_url }}" | ||
state: present | ||
when: | ||
- wazuh_custom_packages_installation_indexer_enabled | ||
when: | ||
- ansible_os_family|lower == "debian" | ||
|
||
- block: | ||
- name: Install Wazuh Indexer from .rpm packages | yum | ||
yum: | ||
name: "{{ wazuh_custom_packages_installation_indexer_rpm_url }}" | ||
state: present | ||
when: | ||
- wazuh_custom_packages_installation_indexer_enabled | ||
- not (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8") | ||
- not (ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8") | ||
|
||
- name: Install Wazuh Indexer from .rpm packages | dnf | ||
dnf: | ||
name: "{{ wazuh_custom_packages_installation_indexer_rpm_url }}" | ||
state: present | ||
disable_gpg_check: True | ||
when: | ||
- wazuh_custom_packages_installation_indexer_enabled | ||
- (ansible_distribution|lower == "centos" and ansible_distribution_major_version >= "8") or | ||
(ansible_distribution|lower == "redhat" and ansible_distribution_major_version >= "8") | ||
when: | ||
- ansible_os_family|lower == "redhat" |
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