Skip to content

Commit

Permalink
Address the hosts and fleet API issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaxley committed Oct 15, 2024
1 parent 03ac6a9 commit 5b603b9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions scripts/set_fleet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@
msg: "Failed to retrieve CA fingerprint. Please check the Elasticsearch container and certificates."
when: ca_fingerprint is undefined or ca_fingerprint.rc != 0

- name: Debug authentication variables
debug:
msg:
- "local_kbn_url: {{ local_kbn_url }}"
- "ipvar: {{ ipvar }}"
- "fleet_port: {{ fleet_port }}"
- "elastic_password is set: {{ elastic_password | length > 0 }}"
- "headers: {{ headers }}"
no_log: true

- name: Set Fleet server hosts
uri:
url: "{{ local_kbn_url }}/api/fleet/settings"
Expand All @@ -108,14 +118,6 @@
var: fleet_server_hosts_result
when: fleet_server_hosts_result is defined

- name: Debug authentication variables
debug:
msg:
- "local_kbn_url: {{ local_kbn_url }}"
- "elastic_password is set: {{ elastic_password | length > 0 }}"
- "headers: {{ headers }}"
no_log: true

- name: Set Fleet default output hosts
uri:
url: "{{ local_kbn_url }}/api/fleet/outputs/fleet-default-output"
Expand Down

0 comments on commit 5b603b9

Please sign in to comment.