From 18287b8e0691658420517c24bc2f4ba2f345539b Mon Sep 17 00:00:00 2001 From: admingit Date: Thu, 3 Aug 2023 14:42:57 +0200 Subject: [PATCH] update_new_hosts --- .../01-Conf_license_slave/default/server.conf | 2 +- Apps_for_DS/02-M-TIC_CM/local/distsearch.conf | 4 ++-- .../default/outputs.conf | 2 +- .../local/outputs.conf | 2 +- .../default/server.conf | 2 +- .../default/server.conf | 4 ++-- .../default/server.conf | 2 +- Apps_for_DS/For_MC/local/distsearch.conf | 16 ++++++------- .../splunk_monitoring_console_assets.conf | 2 +- .../local/serverclass.conf | 14 +++++------ .../local/deploymentclient.conf | 2 +- Copy_Files.yml | 4 ++-- Copy_keys.yml | 4 ++-- Copy_keys_Test.yml | 4 ++-- Deploy_Splunk.yml | 2 +- Inventories/cluster/hosts-TIC.yml | 23 ++++++++----------- Old_Playbooks/Copy_keysV2.yml | 8 +++---- .../splunk_deploy/tasks/Backup_Keys_DSMC.yml | 2 +- .../tasks/Deploy_Keys_to_others.yml | 4 ++-- 19 files changed, 50 insertions(+), 53 deletions(-) diff --git a/Apps_for_DS/01-Conf_license_slave/default/server.conf b/Apps_for_DS/01-Conf_license_slave/default/server.conf index 8bc53ae..0fbe02e 100755 --- a/Apps_for_DS/01-Conf_license_slave/default/server.conf +++ b/Apps_for_DS/01-Conf_license_slave/default/server.conf @@ -6,4 +6,4 @@ # the indexers. In either event, the settings are the same. [license] - master_uri = https://SVLCTPLOGLMR.jpit.com:8089 \ No newline at end of file + master_uri = https://SRVLM01.jpit.com:8089 \ No newline at end of file diff --git a/Apps_for_DS/02-M-TIC_CM/local/distsearch.conf b/Apps_for_DS/02-M-TIC_CM/local/distsearch.conf index 6eddce7..81f2f69 100755 --- a/Apps_for_DS/02-M-TIC_CM/local/distsearch.conf +++ b/Apps_for_DS/02-M-TIC_CM/local/distsearch.conf @@ -9,11 +9,11 @@ servers = localhost:localhost [distributedSearch:dmc_group_indexer] default = false -servers = SVLCTPLOGIDX01.jpit.com:8089,SVLCTPLOGIDX02.jpit.com:8089 +servers = SRVIDX01.jpit.com:8089,SRVIDX02.jpit.com:8089 [distributedSearch:dmc_group_shc_deployer] [distributedSearch:dmc_group_kv_store] [distributedSearch:dmc_indexerclustergroup_Cluster_M-TIC] -servers = localhost:localhost,SVLCTPLOGIDX01.jpit.com:8089,SVLCTPLOGIDX02.jpit.com:8089 +servers = localhost:localhost,SRVIDX01.jpit.com:8089,SRVIDX02.jpit.com:8089 diff --git a/Apps_for_DS/02-M-TIC_all_forwarding_outputs/default/outputs.conf b/Apps_for_DS/02-M-TIC_all_forwarding_outputs/default/outputs.conf index 2bd409d..ead6ac2 100755 --- a/Apps_for_DS/02-M-TIC_all_forwarding_outputs/default/outputs.conf +++ b/Apps_for_DS/02-M-TIC_all_forwarding_outputs/default/outputs.conf @@ -8,5 +8,5 @@ useACK = true forceTimebasedAutoLB = true [tcpout:m-tic_indexer] -server = SVLCTPLOGIDX01.jpit.com:9997, SVLCTPLOGIDX02.jpit.com:9997 +server = SRVIDX01.jpit.com:9997, SRVIDX02.jpit.com:9997 ~ diff --git a/Apps_for_DS/02-M-TIC_cluster_forwarder_outputs/local/outputs.conf b/Apps_for_DS/02-M-TIC_cluster_forwarder_outputs/local/outputs.conf index 32aa73f..eea00c4 100644 --- a/Apps_for_DS/02-M-TIC_cluster_forwarder_outputs/local/outputs.conf +++ b/Apps_for_DS/02-M-TIC_cluster_forwarder_outputs/local/outputs.conf @@ -6,7 +6,7 @@ forceTimebaseAutoLB = true forwardedindex.2.whitelist = (_audit|_introspection|_internal) [tcpout:primary_indexers] -server = SVLCTPLOGIDX01.jpit.com:9997, SVLCTPLOGIDX02.jpit.com:9997 +server = SRVIDX01.jpit.com:9997, SRVIDX02.jpit.com:9997 #clientCert = $SPLUNK_HOME/etc/auth/server.pem #sslPassword = diff --git a/Apps_for_DS/02-M-TIC_idx_cluster_base/default/server.conf b/Apps_for_DS/02-M-TIC_idx_cluster_base/default/server.conf index 75f1439..b697cd1 100755 --- a/Apps_for_DS/02-M-TIC_idx_cluster_base/default/server.conf +++ b/Apps_for_DS/02-M-TIC_idx_cluster_base/default/server.conf @@ -1,6 +1,6 @@ [replication_port://9100] [clustering] -manager_uri = https://SVLCTPLOGCLM01.jpit.com:8089 +manager_uri = https://SRVCLM01.jpit.com:8089 mode = peer pass4SymmKey = $7$iQ3wl+w1tMlCZXopQ/BDXHv8e+xGXGR10mvQYOiCdPxZuIkKX87oMm85MSkitkPk3PYW2Qhjc/kSMq2B5M0= diff --git a/Apps_for_DS/02-M-TIC_sh_cluster_base/default/server.conf b/Apps_for_DS/02-M-TIC_sh_cluster_base/default/server.conf index 068d220..3bedeac 100644 --- a/Apps_for_DS/02-M-TIC_sh_cluster_base/default/server.conf +++ b/Apps_for_DS/02-M-TIC_sh_cluster_base/default/server.conf @@ -3,13 +3,13 @@ mode = searchhead manager_uri = clustermanager:one [clustermanager:one] -manager_uri = https://SVLCTPLOGCLM01.jpit.com:8089 +manager_uri = https://SRVCLM01.jpit.com:8089 pass4SymmKey = $7$iQ3wl+w1tMlCZXopQ/BDXHv8e+xGXGR10mvQYOiCdPxZuIkKX87oMm85MSkitkPk3PYW2Qhjc/kSMq2B5M0= multisite = false [shclustering] shcluster_label = M-TIC_shcluster -conf_deploy_fetch_url = https://SVLCTPLOGSUP01.jpit.com:8089 +conf_deploy_fetch_url = https://SRVDSMC.jpit.com:8089 pass4SymmKey = $7$iQ3wl+w1tMlCZXopQ/BDXHv8e+xGXGR10mvQYOiCdPxZuIkKX87oMm85MSkitkPk3PYW2Qhjc/kSMq2B5M0= [httpServer] diff --git a/Apps_for_DS/02-M-TIC_sh_idxcluster_base/default/server.conf b/Apps_for_DS/02-M-TIC_sh_idxcluster_base/default/server.conf index 0046dcb..f3c1456 100755 --- a/Apps_for_DS/02-M-TIC_sh_idxcluster_base/default/server.conf +++ b/Apps_for_DS/02-M-TIC_sh_idxcluster_base/default/server.conf @@ -3,7 +3,7 @@ site = site2 [clustering] multisite = true -master_uri = https://SVLCTPLOGCLM01.jpit.com:8089 +master_uri = https://SRVCLM01.jpit.com:8089 mode = searchhead pass4SymmKey = $7$i7IqoiyC1DpnVbSVtwGzuVTO5rmVyPCI2CMacpHEFs3N2oFAaF0EJ049Otza diff --git a/Apps_for_DS/For_MC/local/distsearch.conf b/Apps_for_DS/For_MC/local/distsearch.conf index 833c571..a004ab3 100644 --- a/Apps_for_DS/For_MC/local/distsearch.conf +++ b/Apps_for_DS/For_MC/local/distsearch.conf @@ -1,30 +1,30 @@ [distributedSearch:dmc_group_cluster_master] -servers = SVLCTPLOGCLM01.jpit.com:8089 +servers = SRVCLM01.jpit.com:8089 [distributedSearch:dmc_group_deployment_server] servers = localhost:localhost [distributedSearch:dmc_group_kv_store] -servers = SVLCTPLOGCLM01.jpit.com:8089,SVLCTPLOGPUB01.jpit.com:8089,SVLCTPLOGPUB02.jpit.com:8089 +servers = SRVCLM01.jpit.com:8089,SRVSH01.jpit.com:8089,SRVSH02.jpit.com:8089 [distributedSearch:dmc_group_search_head] -servers = SVLCTPLOGPUB01.jpit.com:8089,SVLCTPLOGPUB02.jpit.com:808 +servers = SRVSH01.jpit.com:8089,SRVSH02.jpit.com:808 [distributedSearch:dmc_group_indexer] default = true -servers = SVLCTPLOGIDX01.jpit.com:8089,SVLCTPLOGIDX02.jpit.com:8089 +servers = SRVIDX01.jpit.com:8089,SRVIDX02.jpit.com:8089 [distributedSearch:dmc_group_shc_deployer] servers = localhost:localhost [distributedSearch:dmc_indexerclustergroup_Cluster_M-TIC] -servers = SVLCTPLOGIDX01.jpit.com:8089,SVLCTPLOGIDX02.jpit.com:8089,SVLCTPLOGCLM01.jpit.com:8089,SVLCTPLOGPUB01.jpit.com:8089,SVLCTPLOGPUB02.jpit.com:8089 +servers = SRVIDX01.jpit.com:8089,SRVIDX02.jpit.com:8089,SRVCLM01.jpit.com:8089,SRVSH01.jpit.com:8089,SRVSH02.jpit.com:8089 [distributedSearch:dmc_group_license_master] -servers = SVLCTPLOGLMR.jpit.com:8089 +servers = SRVLM01.jpit.com:8089 [distributedSearch:dmc_searchheadclustergroup_M-TIC_shcluster] -servers = localhost:localhost,SVLCTPLOGPUB01.jpit.com:8089,SVLCTPLOGPUB02.jpit.com:8089 +servers = localhost:localhost,SRVSH01.jpit.com:8089,SRVSH02.jpit.com:8089 [distributedSearch] -servers = https://SVLCTPLOGCLM01.jpit.com:8089,https://SVLCTPLOGLMR.jpit.com:8089,https://SVLCTPLOGPUB01.jpit.com:8089,https://SVLCTPLOGPUB02.jpit.com:8089 \ No newline at end of file +servers = https://SRVCLM01.jpit.com:8089,https://SRVLM01.jpit.com:8089,https://SRVSH01.jpit.com:8089,https://SRVSH02.jpit.com: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 index 4595279..ea9bd70 100644 --- 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 @@ -1,4 +1,4 @@ [settings] mc_auto_config = enabled disabled = 0 -configuredPeers = SVLCTPLOGPUB01.jpit.com:8089,SVLCTPLOGPUB02.jpit.com:8089,SVLCTPLOGIDX01.jpit.com:8089,SVLCTPLOGIDX02.jpit.com:8089,SVLCTPLOGLMR.jpit.com:8089,SVLCTPLOGCLM01.jpit.com:8089 \ No newline at end of file +configuredPeers = SRVSH01.jpit.com:8089,SRVSH02.jpit.com:8089,SRVIDX01.jpit.com:8089,SRVIDX02.jpit.com:8089,SRVLM01.jpit.com:8089,SRVCLM01.jpit.com:8089 \ No newline at end of file diff --git a/Apps_for_Splunk/01-Conf_ServerClass/local/serverclass.conf b/Apps_for_Splunk/01-Conf_ServerClass/local/serverclass.conf index 23adeb2..4d1ae5e 100644 --- a/Apps_for_Splunk/01-Conf_ServerClass/local/serverclass.conf +++ b/Apps_for_Splunk/01-Conf_ServerClass/local/serverclass.conf @@ -94,15 +94,15 @@ restartSplunkd = 0 stateOnClient = enabled [serverClass:Cluster_Indexer_TIC] -whitelist.0 = SVLCTPLOGIDX01.jpit.com -whitelist.1 = SVLCTPLOGIDX02.jpit.com +whitelist.0 = SRVIDX01.jpit.com +whitelist.1 = SRVIDX02.jpit.com [serverClass:Cluster_Master_TIC] -whitelist.0 = SVLCTPLOGCLM01.jpit.com +whitelist.0 = SRVCLM01.jpit.com [serverClass:Cluster_SH_TIC] -whitelist.0 = SVLCTPLOGPUB01.jpit.com -whitelist.1 = SVLCTPLOGPUB02.jpit.com +whitelist.0 = SRVSH01.jpit.com +whitelist.1 = SRVSH02.jpit.com [serverClass:Forwarder_Linux_TIC:app:02-M-TIC_all_forwarding_outputs] restartSplunkWeb = 0 @@ -135,5 +135,5 @@ restartSplunkd = 0 stateOnClient = enabled [serverClass:Forwarder_Linux_TIC] -whitelist.0 = SVLCTPSUPPFI01.jpit.com -whitelist.1 = SVLCTPSUPPFI02.jpit.com \ No newline at end of file +whitelist.0 = SRVFWD01.jpit.com +whitelist.1 = SRVFWD02.jpit.com \ No newline at end of file diff --git a/Apps_for_Splunk/01-Conf_deploy_client/local/deploymentclient.conf b/Apps_for_Splunk/01-Conf_deploy_client/local/deploymentclient.conf index 5001715..9f906cf 100644 --- a/Apps_for_Splunk/01-Conf_deploy_client/local/deploymentclient.conf +++ b/Apps_for_Splunk/01-Conf_deploy_client/local/deploymentclient.conf @@ -1,5 +1,5 @@ [target-broker:deploymentServer] -targetUri = https://SVLCTPLOGSUP01.jpit.com:8089 +targetUri = https://SRVDSMC.jpit.com:8089 [deployment-client] disabled = 0 \ No newline at end of file diff --git a/Copy_Files.yml b/Copy_Files.yml index 00d549e..627374d 100644 --- a/Copy_Files.yml +++ b/Copy_Files.yml @@ -26,7 +26,7 @@ #- name: Copier depuis repo - #hosts: SVLCTPSUPPFI02.jpit.com + #hosts: SRVFWD02.jpit.com #become: true #tasks: #- name: copy @@ -40,7 +40,7 @@ #delegate_to: 10.10.30.38 # - name: Récupérer le fichier depuis l'hôte source et le copier sur l'hôte distant -# hosts: SVLCTPSUPPFI02.jpit.com +# hosts: SRVFWD02.jpit.com # become: true # tasks: # - name: Récupérer le fichier depuis l'hôte source diff --git a/Copy_keys.yml b/Copy_keys.yml index b2ff4ba..be91a31 100644 --- a/Copy_keys.yml +++ b/Copy_keys.yml @@ -6,8 +6,8 @@ tasks: - name: copy: - src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/" - dest: "/opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.jpit.com/" + src: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/" + dest: "/opt/splunk/etc/auth/distServerKeys/SRVDSMC.jpit.com/" owner: splunk group: splunk diff --git a/Copy_keys_Test.yml b/Copy_keys_Test.yml index ce223c2..9aee8c7 100644 --- a/Copy_keys_Test.yml +++ b/Copy_keys_Test.yml @@ -7,14 +7,14 @@ - name: Copie de la clé du DSMC sur les instances splunk copy: src: /opt/splunk/etc/auth/distServerKeys/trusted.pem - dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/" + dest: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/" owner: root group: root remote_src: true - name: Copie de la clé du DSMC sur les instances splunk copy: - src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/test/trusted.pem" + src: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/test/trusted.pem" dest: /tmp/ owner: root group: root diff --git a/Deploy_Splunk.yml b/Deploy_Splunk.yml index b122460..c1dacfe 100644 --- a/Deploy_Splunk.yml +++ b/Deploy_Splunk.yml @@ -32,7 +32,7 @@ - name: "Deploy Configuration Bootstrap SHC" become: yes become_user: "{{ privileged_user }}" - hosts: SVLCTPLOGPUB02.jpit.com + hosts: SRVSH02.jpit.com tasks: - name: Deploy_Conf_SHC_BS include_tasks: roles/splunk_deploy/tasks/Deploy_Conf_SHC_BS.yml diff --git a/Inventories/cluster/hosts-TIC.yml b/Inventories/cluster/hosts-TIC.yml index 88ccbe7..d0ad022 100644 --- a/Inventories/cluster/hosts-TIC.yml +++ b/Inventories/cluster/hosts-TIC.yml @@ -3,33 +3,30 @@ children: splunk_search_head: hosts: - SVLCTPLOGPUB01.jpit.com: - SVLCTPLOGPUB02.jpit.com: + SRVSH01.jpit.com: + SRVSH02.jpit.com: splunk_indexer: hosts: - SVLCTPLOGIDX01.jpit.com: - SVLCTPLOGIDX02.jpit.com: + SRVIDX01.jpit.com: + SRVIDX02.jpit.com: splunk_licence_master: hosts: - SVLCTPLOGLMR.jpit.com: + SRVLM01.jpit.com: splunk_uf_Linux: hosts: - SVLCTPSUPPFI01.jpit.com: - SVLCTPSUPPFI02.jpit.com: + SRVFWD02.jpit.com: splunk_hf_Linux: hosts: - SVLCTPSUPPFI01.jpit.com: - SVLCTPSUPPFI02.jpit.com: + SRVFWD01.jpit.com: splunk_uf_Windows: hosts: - SVWCTPSUPPFI01.jpit.com: SVWIPADM01.jpit.com: splunk_deployement: hosts: - SVLCTPLOGSUP01.jpit.com: + SRVDSMC.jpit.com: splunk_monitoring: hosts: - SVLCTPLOGSUP01.jpit.com: + SRVDSMC.jpit.com: splunk_cluster_master: hosts: - SVLCTPLOGCLM01.jpit.com: + SRVCLM01.jpit.com: diff --git a/Old_Playbooks/Copy_keysV2.yml b/Old_Playbooks/Copy_keysV2.yml index f4f554c..a9c28d5 100644 --- a/Old_Playbooks/Copy_keysV2.yml +++ b/Old_Playbooks/Copy_keysV2.yml @@ -6,8 +6,8 @@ # tasks: # - name: Copie de la clé du DSMC sur les instances splunk # copy: -# src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/" -# dest: /opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.jpit.com/ +# src: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/" +# dest: /opt/splunk/etc/auth/distServerKeys/SRVDSMC.jpit.com/ # owner: root # group: root @@ -19,6 +19,6 @@ - name: Copier le fichier trusted synchronize: mode: pull - src: rsync://SVLCTPLOGSUP01.jpit.com/opt/splunk/etc/auth/distServerKeys/trusted.pem + src: rsync://SRVDSMC.jpit.com/opt/splunk/etc/auth/distServerKeys/trusted.pem dest: /tmp/ - delegate_to: SVLCTPLOGSUP01.jpit.com \ No newline at end of file + delegate_to: SRVDSMC.jpit.com \ No newline at end of file diff --git a/roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml b/roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml index 67f1714..a88be2e 100644 --- a/roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml +++ b/roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml @@ -5,7 +5,7 @@ #hosts: splunk_deployement copy: src: "/opt/splunk/etc/auth/distServerKeys/trusted.pem" - dest: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/" + dest: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/" owner: root group: root remote_src: true \ No newline at end of file diff --git a/roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml b/roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml index ce99361..99d8949 100644 --- a/roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml +++ b/roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml @@ -4,8 +4,8 @@ become_user: "{{ privileged_user }}" #hosts: all:!splunk_uf_Linux:!splunk_deployement copy: - src: "{{ playbook_dir }}/Keys_public/SVLCTPLOGSUP01.jpit.com/" - dest: "/opt/splunk/etc/auth/distServerKeys/SVLCTPLOGSUP01.jpit.com/" + src: "{{ playbook_dir }}/Keys_public/SRVDSMC.jpit.com/" + dest: "/opt/splunk/etc/auth/distServerKeys/SRVDSMC.jpit.com/" owner: root group: root remote_src: true