Skip to content

Commit

Permalink
Fix data type for version check (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Morales authored Aug 12, 2021
1 parent 40274c4 commit 66525fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/splunk/tasks/configure_idxc_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# https://docs.splunk.com/Documentation/Splunk/latest/Indexer/Configuremanagerwithserverconf
- name: Setting clustering mode based on Splunk version number
set_fact:
mode_value: "{% if splunk_version_release | int < 8.1 %}master{% else %}manager{% endif %}"
mode_value: "{% if splunk_version_release | float < 8.1 %}master{% else %}manager{% endif %}"

- name: Configure clustering stanza for cluster manager node
ini_file:
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk/tasks/configure_idxc_member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# https://docs.splunk.com/Documentation/Splunk/8.0.9/Indexer/ConfigurepeerswithCLI
- name: Setting clustering mode based on Splunk version number
set_fact:
mode_value: "{% if splunk_version_release | int < 8.1 %}slave{% else %}peer{% endif %}"
mode_value: "{% if splunk_version_release | float < 8.1 %}slave{% else %}peer{% endif %}"

- name: Configure idxc member
command: "{{ splunk_home }}/bin/splunk edit cluster-config -mode {{ mode_value }} -auth {{ splunk_auth }} -master_uri {{ splunk_uri_cm }} -replication_port {{ splunk_idxc_rep_port }} -secret {{ splunk_idxc_key }}"
Expand Down

0 comments on commit 66525fb

Please sign in to comment.