File tree 4 files changed +24
-6
lines changed
splunk_software/templates/home/splunk
4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ ) .
6
6
7
+ ## [ 2.2.2] ( https://github.com/splunk/splunk-platform-automator/releases/tag/v2.2.2 ) - tbd
8
+
9
+ ### Fixed
10
+
11
+ - Fix the usage of the manager-apps dir on the cm from 9.0.0 on
12
+
7
13
## [ 2.2.1] ( https://github.com/splunk/splunk-platform-automator/releases/tag/v2.2.1 ) - 2024-02-11
8
14
9
15
### Fixed
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ splunk_manager_uri_var: "{%- if splunk_installed_version is version_compare('9.0
96
96
splunk_clustermanager_var : " {%- if splunk_installed_version is version_compare('9.0', '>=') -%}clustermanager{%- else -%}clustermaster{%- endif -%}"
97
97
splunk_cluster_manager_mode : " {%- if splunk_installed_version is version_compare('9.0', '>=') -%}manager{%- else -%}master{%- endif -%}"
98
98
splunk_cluster_peer_mode : " {%- if splunk_installed_version is version_compare('9.0', '>=') -%}peer{%- else -%}slave{%- endif -%}"
99
-
99
+ splunk_cluster_manager_apps : " {%- if splunk_installed_version is version_compare('9.0', '>=') -%}manager-apps{%- else -%}master-apps{%- endif -%} "
100
100
101
101
# Multisite Indexer Cluster
102
102
splunk_idxc_available_sites : " {{ idxc_available_sites|default([])|join(',') }}"
Original file line number Diff line number Diff line change 108
108
name : baseconfig_app
109
109
vars :
110
110
app_name : ' org_indexer_volume_indexes'
111
- app_path : ' {{splunk_home}}/etc/master-apps '
111
+ app_path : ' {{splunk_home}}/etc/{{splunk_cluster_manager_apps}} '
112
112
113
113
- name : apply baseconfig app org_all_indexes
114
114
tags :
120
120
name : baseconfig_app
121
121
vars :
122
122
app_name : ' org_all_indexes'
123
- app_path : ' {{splunk_home}}/etc/master-apps '
123
+ app_path : ' {{splunk_home}}/etc/{{splunk_cluster_manager_apps}} '
124
124
125
125
- name : apply baseconfig app org_s2_indexer_indexes
126
126
tags :
132
132
name : baseconfig_app
133
133
vars :
134
134
app_name : ' org_s2_indexer_indexes'
135
- app_path : ' {{splunk_home}}/etc/master-apps '
135
+ app_path : ' {{splunk_home}}/etc/{{splunk_cluster_manager_apps}} '
136
136
when : splunk_volume_defaults.remotePath is defined
137
137
138
138
- name : apply baseconfig app org_full_license_server
145
145
name : baseconfig_app
146
146
vars :
147
147
app_name : ' org_full_license_server'
148
- app_path : ' {{splunk_home}}/etc/master-apps '
148
+ app_path : ' {{splunk_home}}/etc/{{splunk_cluster_manager_apps}} '
149
149
when : splunk_license_manager|default()|length > 0
150
150
151
151
- name : call update_dserver from role monitoring_console
Original file line number Diff line number Diff line change 2
2
export SPLUNK_HOME={{ splunk_home }}
3
3
export PATH=$PATH:$SPLUNK_HOME/bin
4
4
5
+ # Functions
6
+ cdmanager()
7
+ {
8
+ # Check if there is a manager-apps dir
9
+ if [ -d $SPLUNK_HOME/etc/manager-apps ];
10
+ then
11
+ cd $SPLUNK_HOME/etc/manager-apps
12
+ else
13
+ cd $SPLUNK_HOME/etc/master-apps
14
+ fi
15
+ }
16
+
5
17
# Aliases
6
18
alias cs="cd $SPLUNK_HOME"
7
19
alias ce="cd $SPLUNK_HOME/etc"
8
20
alias ca="cd $SPLUNK_HOME/etc/apps"
9
- alias cm="cd $SPLUNK_HOME/etc/master-apps"
21
+ alias cm=cdmanager
10
22
alias ch="cd $SPLUNK_HOME/etc/shcluster/apps"
11
23
alias cdd="cd $SPLUNK_HOME/etc/deployment-apps"
12
24
alias cdl="cd $SPLUNK_HOME/var/log/splunk"
You can’t perform that action at this time.
0 commit comments