add package beginning
This commit is contained in:
43
WAPT/control
Normal file
43
WAPT/control
Normal file
@@ -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 :
|
||||||
24
setup.py
Normal file
24
setup.py
Normal file
@@ -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 <indexer-node-ip> <wazuh-manager-ip> <dashboard-node-ip> in config.yml with ip
|
||||||
|
config_content = config_content.replace("<indexer-node-ip>", ip)
|
||||||
|
config_content = config_content.replace("<wazuh-manager-ip>", ip)
|
||||||
|
config_content = config_content.replace("<dashboard-node-ip>", ip)
|
||||||
|
#write config.yml
|
||||||
|
config_yml = open("config.yml", "w")
|
||||||
|
config_yml.write(config_content)
|
||||||
|
config_yml.close()
|
||||||
|
|
||||||
|
|
||||||
20
update_package.py
Normal file
20
update_package.py
Normal file
@@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user