Skip to content

Commit

Permalink
pull request splunk#210
Browse files Browse the repository at this point in the history
  • Loading branch information
bpelaia committed Dec 27, 2023
1 parent 3c2fc91 commit 4b48c74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/splunk/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ git_version: master # Configure default version to clone, overridable inside the
app_relative_path: # set a sub-path you want to sync within a repo. If the repo contains multiple apps in the root directory, just set this to a trailing slash.
splunk_app_deploy_path: undefined # Path under $SPLUNK_HOME/ to deploy apps to - Note that this may be set in group_vars, host_vars, playbook vars, or inside the git_apps dictionary within host_vars
splunk_auditd_configure: false # Whether or not to install auditd filtering rules for splunk launched executables
# DMC Vars
splunk_dmc_not_indexer_host_expression: 'all:!indexers'
splunk_dmc_not_indexers_list: "{{ query('inventory_hostnames', splunk_dmc_not_indexer_host_expression) }}" # List of all inventory items that are not the indexers. If your configuration uses a nonstandard name for hostnames you can replace this with a different list.
# IDXC Vars
splunk_idxc_key: mypass4symmkey
splunk_idxc_rf: 2
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk/tasks/configure_dmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- name: Configure systems as search peers to be monitored except indexers
ansible.builtin.shell: |
{{ splunk_home }}/bin/splunk add search-server https://{{ item }}:{{ splunkd_port }} -auth "{{ splunk_auth }}" -remoteUsername "{{ splunk_admin_username }}" -remotePassword "{{ splunk_admin_password }}"
loop: "{{ query('inventory_hostnames', 'all:!indexer') }}"
loop: "{{ splunk_dmc_not_indexers_list }}"
become: true
become_user: "{{ splunk_nix_user }}"
no_log: true
Expand Down

0 comments on commit 4b48c74

Please sign in to comment.