diff --git a/WAPT/control b/WAPT/control new file mode 100644 index 0000000..828a9cb --- /dev/null +++ b/WAPT/control @@ -0,0 +1,43 @@ +package : comi-wazuh-server +version : 0-0 +architecture : all +section : base +priority : optional +name : +categories : +maintainer : pcosson +description : Package for comi-wazuh-server +depends : +conflicts : +maturity : PROD +locale : +target_os : Debian_based +min_wapt_version : +sources : +installed_size : +impacted_process : +description_fr : +description_pl : +description_de : +description_es : +description_pt : +description_it : +description_nl : +description_ru : +audit_schedule : +editor : +keywords : +licence : +homepage : +package_uuid : +valid_from : +valid_until : +forced_install_on : +changelog : +min_os_version : +max_os_version : +icon_sha256sum : +signer : +signer_fingerprint: +signature_date : +signed_attributes : \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..980947d --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from setuphelpers import * + +#reference : https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/step-by-step.html + +def install(): + install_apt("debconf") + install_apt("adduser") + install_apt("procps") + ip="127.0.0.1" + #open config.yml + config_yml = open("config.yml", "r") + config_content = config_yml.read() + config_yml.close() + #replace in config.yml with ip + config_content = config_content.replace("", ip) + config_content = config_content.replace("", ip) + config_content = config_content.replace("", ip) + #write config.yml + config_yml = open("config.yml", "w") + config_yml.write(config_content) + config_yml.close() + + diff --git a/update_package.py b/update_package.py new file mode 100644 index 0000000..3d9b4cb --- /dev/null +++ b/update_package.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from setuphelpers import * + + +def update_package(): + # Define the package URLs + manager_url = "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-manager/wazuh-manager_4.12.0-1_amd64.deb" + indexer_url = "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-indexer/wazuh-indexer_4.12.0-1_amd64.deb" + wazuh_certs_tool_url = "https://packages.wazuh.com/4.12/wazuh-certs-tool.sh" + config_yml_url = "https://packages.wazuh.com/4.12/config.yml" + + + # Download the packages + wget(manager_url, "wazuh-manager.deb") + wget(indexer_url, "wazuh-indexer.deb") + wget(wazuh_certs_tool_url, "wazuh-certs-tool.sh") + wget(config_yml_url, "config.yml") + + + \ No newline at end of file