Skip to content

Commit

Permalink
Change mgmt host URL to reflect UF 9.x changes (#737)
Browse files Browse the repository at this point in the history
* debug: enable remote mgmt port;

* enable mgmthostport value for all conditions if svc_port value exists;

* revert debug changes;
  • Loading branch information
adityapinglesf authored Jul 12, 2023
1 parent 7c973fe commit 4ff5c8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions roles/splunk_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@
- splunk.http_port | int != 8000

- include_tasks: set_mgmt_port.yml
when:
- "'svc_port' in splunk"
- splunk.svc_port | int != 8089

- include_tasks: set_root_endpoint.yml
when: "'root_endpoint' in splunk and splunk.root_endpoint"
Expand Down
4 changes: 3 additions & 1 deletion roles/splunk_common/tasks/set_mgmt_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
dest: "{{ splunk.home }}/etc/system/local/web.conf"
section: settings
option: "mgmtHostPort"
value: "127.0.0.1:{{ splunk.svc_port }}"
value: "0.0.0.0:{{ splunk.svc_port }}"
owner: "{{ splunk.user }}"
group: "{{ splunk.group }}"
when:
- "'svc_port' in splunk"

0 comments on commit 4ff5c8e

Please sign in to comment.