Skip to content

Commit

Permalink
Merge pull request #93 from fabric-testbed/underbar-fix
Browse files Browse the repository at this point in the history
Changed _meas_node to meas-node.
  • Loading branch information
cscarp authored Apr 22, 2023
2 parents a115e83 + 2aeb691 commit 11129d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions instrumentize/elk/fabric_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
vars:
filebeat_version: 7.13.2
filebeat_template_file: filebeat.yml.j2
filebeat_output_elasticsearch_hosts: "{{ hostvars['_meas_node'].ansible_host }}"
filebeat_setup_kibana_host: "{{ hostvars['_meas_node'].ansible_host }}"
filebeat_output_elasticsearch_hosts: "{{ hostvars['meas-node'].ansible_host }}"
filebeat_setup_kibana_host: "{{ hostvars['meas-node'].ansible_host }}"
metricbeat_version: 7.13.2
metricbeat_template_file: metricbeat.yml.j2
metricbeat_output_elasticsearch_hosts: "{{ hostvars['_meas_node'].ansible_host }}"
metricbeat_setup_kibana_host: "{{ hostvars['_meas_node'].ansible_host }}"
metricbeat_output_elasticsearch_hosts: "{{ hostvars['meas-node'].ansible_host }}"
metricbeat_setup_kibana_host: "{{ hostvars['meas-node'].ansible_host }}"
packetbeat_version: 7.13.2
packetbeat_template_file: packetbeat.yml.j2
packetbeat_output_elasticsearch_hosts: "{{ hostvars['_meas_node'].ansible_host }}"
packetbeat_setup_kibana_host: "{{ hostvars['_meas_node'].ansible_host }}"
packetbeat_output_elasticsearch_hosts: "{{ hostvars['meas-node'].ansible_host }}"
packetbeat_setup_kibana_host: "{{ hostvars['meas-node'].ansible_host }}"
roles:
- worker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def get_hostname(self):
return (name)

def get_meas_node_ip(self):
# Find the line with _meas_node
# Find the line with meas-node
meas_ip=""
with open("/etc/hosts", "r") as f:
lines = f.readlines()
for line in lines:
if ("_meas_node" in line):
if ("meas-node" in line):
meas_ip = line.split()[0]
return (meas_ip)

Expand Down

0 comments on commit 11129d1

Please sign in to comment.