Skip to content

Commit 4461cef

Browse files
author
Mason Morales
authored
Rename clustermaster to clustermanager (#88)
* Rename clustermaster to clustermanager
1 parent 33b3996 commit 4461cef

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Ansible only needs to be installed on the host that you want to use to manage yo
5555
The layout of your inventory is critical for the tasks included in ansible-role-for-splunk to run correctly. The "role" of your host is determined by it being a member of one or more inventory groups that define its Splunk role. Ansible expects each host to be a member of one of these groups and uses that membership to determine the package that should be used, the installation path, the default deployment path for app deployments, and several other things. The following group names are currently supported:
5656
* full
5757
* uf
58-
* clustermaster
58+
* clustermanager
5959
* deploymentserver
6060
* indexer
6161
* licensemaster
@@ -153,8 +153,8 @@ Note: Any task with an **adhoc** prefix means that it can be used independently
153153
- **install_utilities.yml** - Installs Linux packages that are useful for troubleshooting Splunk-related issues when `install_utilities: true` and `linux_packages` is defined with a list of packages to install.
154154
- **main.yml** - This is the main task that will always be called when executing this role. This task sets the appropriate variables for full vs uf packages, sends a Slack notification about the play if the slack_token and slack_channel are defined, checks the current boot-start configuration to determine if it's in the expected state, and then includes the task from the role to execute against, as defined by the value of the deployment_task variable. The deployment_task variable should be defined in your playbook(s). Refer to the included example playbooks to see this in action.
155155
- **post_install.yml** - Executes post-installation tasks. Performs a touch on the .ui_login file which disables the first-time login prompt to change your password, ensures that `splunk_home` is owned by the correct user and group, and optionally configures three scripts to: cleanup crash logs and old diags (by calling add_crashlog_script.yml and add_diag_script.yml, respectively), and a pstack generation shell script for troubleshooting purposes (by calling add_pstack_script.yml). This task will install various Linux troubleshooting utilities (by calling install_utilities.yml) when `install_utilities: true`.
156-
- **set_maintenance_mode.yml** - Enables or disables maintenance mode on a cluster master. Intended to be called by playbooks for indexer cluster upgrades/maintenance. Requires the `state` variable to be defined. Valid values: enabled, disabled
157-
- **set_upgrade_state.yml** - Executes a splunk upgrade-{{ peer_state }} cluster-peers command on the cluster master. This task can be used for upgrading indexer clusters with new minor and maintenance releases of Splunk (assuming you are at Splunk v7.1.0 or higher). Refer to https://docs.splunk.com/Documentation/Splunk/latest/Indexer/Searchablerollingupgrade for more information.
156+
- **set_maintenance_mode.yml** - Enables or disables maintenance mode on a cluster manager. Intended to be called by playbooks for indexer cluster upgrades/maintenance. Requires the `state` variable to be defined. Valid values: enabled, disabled
157+
- **set_upgrade_state.yml** - Executes a splunk upgrade-{{ peer_state }} cluster-peers command on the cluster manager. This task can be used for upgrading indexer clusters with new minor and maintenance releases of Splunk (assuming you are at Splunk v7.1.0 or higher). Refer to https://docs.splunk.com/Documentation/Splunk/latest/Indexer/Searchablerollingupgrade for more information.
158158
- **splunk_offline.yml** - Runs a splunk offline CLI command. Useful for bringing down indexers non-intrusively by allowing searches to complete before stopping splunk.
159159
- **splunk_restart.yml** - Restarts splunk via the service module. Used when waiting for a handler to run at the end of the play would be inappropriate.
160160
- **splunk_start.yml** - Starts splunk via the service module. Used when waiting for a handler to run at the end of the play would be inappropriate.

environments/production/group_vars/clustermaster.yml renamed to environments/production/group_vars/clustermanager.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# group vars for cluster master
2+
# group vars for cluster manager
33
splunk_app_deploy_path: etc/master-apps # default subdirectory in splunk_home that apps from git should be installed to, overridable in git_apps if you want to install to etc/apps
44
git_version: 1.0.0
55
git_apps:

playbooks/splunk_upgrade_full_stack.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# Example playbook to properly upgrade a single-site indexer cluster and search head cluster using the splunk role from ansible-role-for-splunk
33
- hosts:
4-
- clustermaster
4+
- clustermanager
55
become: yes
66
any_errors_fatal: true
77
max_fail_percentage: 0
@@ -34,7 +34,7 @@
3434
deployment_task: check_splunk.yml
3535

3636
- hosts:
37-
- clustermaster
37+
- clustermanager
3838
become: yes
3939
any_errors_fatal: true
4040
max_fail_percentage: 0
@@ -56,7 +56,7 @@
5656
deployment_task: check_splunk.yml
5757

5858
- hosts:
59-
- clustermaster
59+
- clustermanager
6060
become: yes
6161
any_errors_fatal: true
6262
max_fail_percentage: 0

roles/splunk/handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
retries: "{{ splunk_apply_cluster_bundle_retries }}"
4444
delay: "{{ splunk_apply_cluster_bundle_delay }}"
4545
no_log: true
46-
when: "'clustermaster' in group_names"
46+
when: "'clustermanager' in group_names"
4747

4848
- name: reload deployment server
4949
command: "{{ splunk_home }}/bin/splunk reload deploy-server -auth {{ splunk_auth }}"

roles/splunk/tasks/configure_apps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
# Configure default splunk_app_deploy_path based on which group the host is a member of
3-
- name: Set default splunk_app_deploy_path for clustermaster hosts
3+
- name: Set default splunk_app_deploy_path for clustermanager hosts
44
set_fact:
55
splunk_app_deploy_path: etc/master-apps
6-
when: "'clustermaster' in group_names"
6+
when: "'clustermanager' in group_names"
77

88
- name: Set default splunk_app_deploy_path for shdeployer hosts
99
set_fact:
@@ -19,7 +19,7 @@
1919
set_fact:
2020
splunk_app_deploy_path: "etc/apps"
2121
when:
22-
- "'clustermaster' not in group_names"
22+
- "'clustermanager' not in group_names"
2323
- "'shdeployer' not in group_names"
2424
- "'deploymentserver' not in group_names"
2525

roles/splunk/tasks/set_maintenance_mode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
become_user: "{{ splunk_nix_user }}"
66
when:
77
- state is defined and splunk_auth is defined
8-
- "'clustermaster' in group_names"
8+
- "'clustermanager' in group_names"

roles/splunk/tasks/set_upgrade_state.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
become_user: "{{ splunk_nix_user }}"
66
when:
77
- peer_state is defined and splunk_auth is defined
8-
- "'clustermaster' in group_names"
8+
- "'clustermanager' in group_names"

0 commit comments

Comments
 (0)