Skip to content

Commit

Permalink
fix(#4843): Changing config.yml using private ips
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Mar 21, 2024
1 parent da52a2b commit d56b35c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deployability/modules/testing/tests/helpers/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def certs_create(wazuh_version, master_path, dashboard_path, indexer_paths=[], w
current_directory = HostInformation.get_current_dir(master_path)

wazuh_version = '.'.join(wazuh_version.split('.')[:2])
master = socket.gethostbyname(Utils.extract_ansible_host(master_path))
dashboard = socket.gethostbyname(Utils.extract_ansible_host(dashboard_path))
indexers = [socket.gethostbyname(Utils.extract_ansible_host(indexer_path)) for indexer_path in indexer_paths]
workers = [socket.gethostbyname(Utils.extract_ansible_host(worker_path)) for worker_path in worker_paths]
master = HostInformation.get_internal_ip_from_aws_dns(Utils.extract_ansible_host(master_path))
dashboard = HostInformation.get_internal_ip_from_aws_dns(Utils.extract_ansible_host(dashboard_path))
indexers = [HostInformation.get_internal_ip_from_aws_dns(Utils.extract_ansible_host(indexer_path)) for indexer_path in indexer_paths]
workers = [HostInformation.get_internal_ip_from_aws_dns(Utils.extract_ansible_host(worker_path)) for worker_path in worker_paths]

##Basic commands to setup the config file, add the ip for the master & dashboard
os_name = HostInformation.get_os_name_from_inventory(master_path)
Expand Down

0 comments on commit d56b35c

Please sign in to comment.