Skip to content

Commit

Permalink
forceTimebasedAutoLB.yml added
Browse files Browse the repository at this point in the history
  • Loading branch information
my2ndhead committed Jul 5, 2016
1 parent 7274635 commit b640bbf
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
#####################################################################################################################
# Configurations for Splunk outputs.conf
#####################################################################################################################

#####################################################################################################################
# [tcpout:<tcpout:target_group>]
#####################################################################################################################

# forceTimebasedAutoLB

- name: "Configure outputs.conf [tcpout:<tcpout:target_group>] - forceTimebasedAutoLB state=present"
ini_file: dest={{ splunk_conf_path }}/outputs.conf
section=tcpout:{{ item.key }}
option=forceTimebasedAutoLB
value={{ item.value.forceTimebasedAutoLB }}
state=present
with_dict: "{{ splunk_outputs_conf.tcpout.target_group }}"
when: splunk_outputs_conf.tcpout.target_group.{{ item.key }}.forceTimebasedAutoLB is defined and
splunk_outputs_conf.tcpout.target_group.{{ item.key }}.forceTimebasedAutoLB == true
notify: splunk restart

- name: "Configure outputs.conf [tcpout:<tcpout:target_group>] - forceTimebasedAutoLB (default) state=absent"
ini_file: dest={{ splunk_conf_path }}/outputs.conf
section=tcpout:{{ item.key }}
option=forceTimebasedAutoLB
state=absent
with_dict: "{{ splunk_outputs_conf.tcpout.target_group }}"
when: splunk_outputs_conf.tcpout.target_group.{{ item.key }}.forceTimebasedAutoLB is undefined
notify: splunk restart

0 comments on commit b640bbf

Please sign in to comment.