Skip to content

Commit

Permalink
Keep only manager vs master uri changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akondur committed Apr 25, 2023
1 parent 09c73d4 commit bc70aec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/splunk_common/tasks/enable_forwarding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
group: "{{ splunk.group }}"
with_items:
- {key: "pass4SymmKey", value: "{{ splunk.idxc.discoveryPass4SymmKey if splunk.idxc.discoveryPass4SymmKey is defined and splunk.idxc.discoveryPass4SymmKey else splunk.idxc.pass4SymmKey }}"}
- {key: "master_uri", value: "{{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }}"}
- {key: "manager_uri", value: "{{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }}"}
when:
- splunk_indexer_cluster | bool
- item.value | length > 0
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk_common/tasks/peer_cluster_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/SHCandindexercluster#Integrate_with_a_single-site_indexer_cluster
- name: Peer cluster master
command: "{{ splunk.exec }} edit cluster-config -mode searchhead -master_uri {{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }} -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.pass4SymmKey }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
command: "{{ splunk.exec }} edit cluster-config -mode searchhead -manager_uri {{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }} -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.pass4SymmKey }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
become: yes
become_user: "{{ splunk.user }}"
register: peer_cluster_master
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk_common/tasks/set_as_license_slave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
port: "{{ splunk.license_master_url | urlsplit('port') }}"

- name: Set node as license slave
command: "{{ splunk.exec }} edit licenser-localslave -master_uri {{ splunk.license_master_url }} -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
command: "{{ splunk.exec }} edit licenser-localslave -manager_uri {{ splunk.license_master_url }} -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
become: yes
become_user: "{{ splunk.user }}"
register: linux_set_lic_slave
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk_indexer/tasks/indexer_clustering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
splunk_instance_address: "{{ splunk.cluster_master_url }}"

- name: Set current node as indexer cluster peer
command: "{{ splunk.exec }} edit cluster-config -mode slave -master_uri '{{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }}' -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.pass4SymmKey }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
command: "{{ splunk.exec }} edit cluster-config -mode slave -manager_uri '{{ cert_prefix }}://{{ splunk.cluster_master_url }}:{{ splunk.svc_port }}' -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.pass4SymmKey }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
become: yes
become_user: "{{ splunk.user }}"
register: task_result
Expand Down

0 comments on commit bc70aec

Please sign in to comment.