diff --git a/Apps_for_DS/For_MC/local/distsearch.conf b/Apps_for_DS/For_MC/local/distsearch.conf new file mode 100644 index 0000000..41ba1cc --- /dev/null +++ b/Apps_for_DS/For_MC/local/distsearch.conf @@ -0,0 +1,13 @@ +[distributedSearch:dmc_group_shc_deployer] + +[distributedSearch:dmc_group_kv_store] +servers = SVLCTPLOGCLM01.mom.fr:8089,SVLCTPLOGPUB01.mom.fr:8089,SVLCTPLOGPUB02.mom.fr:8089 + +[distributedSearch:dmc_indexerclustergroup_Cluster_M-TIC] +servers = SVLCTPLOGCLM01.mom.fr:8089,SVLCTPLOGPUB01.mom.fr:8089,SVLCTPLOGPUB02.mom.fr:8089,SVLCTPLOGIDX01.mom.fr:8089,SVLCTPLOGIDX02.mom.fr:8089 + +[distributedSearch:dmc_group_search_head] +servers = SVLCTPLOGCLM01.mom.fr:8089,SVLCTPLOGPUB01.mom.fr:8089,SVLCTPLOGPUB02.mom.fr:8089 + +[distributedSearch:dmc_group_license_master] +servers = SVLCTPLOGLMR.mom.fr:8089 \ No newline at end of file diff --git a/Apps_for_DS/splunk_monitoring_console/local/splunk_monitoring_console_assets.conf b/Apps_for_DS/splunk_monitoring_console/local/splunk_monitoring_console_assets.conf new file mode 100644 index 0000000..9dfef85 --- /dev/null +++ b/Apps_for_DS/splunk_monitoring_console/local/splunk_monitoring_console_assets.conf @@ -0,0 +1,3 @@ +[settings] +disabled = 0 +configuredPeers = SVLCTPLOGPUB01.mom.fr:8089,SVLCTPLOGPUB02.mom.fr:8089,SVLCTPLOGIDX01.mom.fr:8089,SVLCTPLOGIDX02.mom.fr:8089,SVLCTPLOGLMR.mom.fr:8089,SVLCTPLOGCLM01.mom.fr:8089 \ No newline at end of file diff --git a/Deploy_apps-to_DS.yml b/Deploy_apps-to_DS.yml index 659ab6b..ed214ae 100644 --- a/Deploy_apps-to_DS.yml +++ b/Deploy_apps-to_DS.yml @@ -9,4 +9,23 @@ src: "{{ playbook_dir }}/Apps_for_DS/" dest: /opt/splunk/etc/deployment-apps/ owner: splunk - group: splunk \ No newline at end of file + group: splunk + + - name: Copier configuration distributsearch + copy: + src: "{{ playbook_dir }}/Apps_for_DS/For_MC/local/distsearch.conf" + dest: /opt/splunk/etc/apps/system/local/ + owner: splunk + group: splunk + + - name: Copier configuration MonitoringConsole + copy: + src: "{{ playbook_dir }}/Apps_for_DS/splunk_monitoring_console/" + dest: /opt/splunk/etc/apps/splunk_monitoring_console/ + owner: splunk + group: splunk + + - name: "Restart Splunk via cli" + command: "{{ splunk_exec }} restart" + become: yes + become_user: "{{ splunk_user }}" \ No newline at end of file