Skip to content

Commit 4b48c74

Browse files
committed
pull request splunk#210
1 parent 3c2fc91 commit 4b48c74

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

roles/splunk/defaults/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ git_version: master # Configure default version to clone, overridable inside the
5252
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.
5353
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
5454
splunk_auditd_configure: false # Whether or not to install auditd filtering rules for splunk launched executables
55+
# DMC Vars
56+
splunk_dmc_not_indexer_host_expression: 'all:!indexers'
57+
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.
5558
# IDXC Vars
5659
splunk_idxc_key: mypass4symmkey
5760
splunk_idxc_rf: 2

roles/splunk/tasks/configure_dmc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- name: Configure systems as search peers to be monitored except indexers
1010
ansible.builtin.shell: |
1111
{{ splunk_home }}/bin/splunk add search-server https://{{ item }}:{{ splunkd_port }} -auth "{{ splunk_auth }}" -remoteUsername "{{ splunk_admin_username }}" -remotePassword "{{ splunk_admin_password }}"
12-
loop: "{{ query('inventory_hostnames', 'all:!indexer') }}"
12+
loop: "{{ splunk_dmc_not_indexers_list }}"
1313
become: true
1414
become_user: "{{ splunk_nix_user }}"
1515
no_log: true

0 commit comments

Comments
 (0)