-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from splunk/add_mgmt_port_options
Add support for disabling and customizing the splunkd mgmt port
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Configure custom splunkd management port | ||
ini_file: | ||
path: "{{ splunk_home }}/etc/system/local/web.conf" | ||
section: settings | ||
option: mgmtHostPort | ||
value: "0.0.0.0:{{ splunkd_port }}" | ||
owner: "{{ splunk_nix_user }}" | ||
group: "{{ splunk_nix_group }}" | ||
mode: 0644 | ||
become: true | ||
notify: restart splunk | ||
when: splunkd_port != '8089' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Disable splunkd management port | ||
ini_file: | ||
path: "{{ splunk_home }}/etc/system/local/server.conf" | ||
section: httpServer | ||
option: disableDefaultPort | ||
value: "{{ splunk_disable_mgmt_port }}" | ||
owner: "{{ splunk_nix_user }}" | ||
group: "{{ splunk_nix_group }}" | ||
mode: 0644 | ||
become: true | ||
notify: restart splunk | ||
when: splunk_disable_mgmt_port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters