update conf

master
JocelynPa 3 years ago
parent 3b6c42c63f
commit 276151049a

@ -2,7 +2,7 @@
- name: Copie de la clé du DSMC sur les instances splunk - name: Copie de la clé du DSMC sur les instances splunk
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
hosts: all:!splunk_deployement_TIC:!splunk_uf_Linux_TIC hosts: all:!splunk_deployement_TIC:!splunk_uf_Linux
tasks: tasks:
- name: Copie de la clé du DSMC sur les instances splunk - name: Copie de la clé du DSMC sur les instances splunk
copy: copy:

@ -1,6 +1,6 @@
--- ---
- name: Supprimer Splunk de Linux - name: Supprimer Splunk de Linux
hosts: all:!splunk_uf_Linux_TIC hosts: all:!splunk_uf_Linux
become: true become: true
become_user: root become_user: root
vars: vars:

@ -1,6 +1,6 @@
--- ---
- name: Supprimer Splunk de Linux - name: Supprimer Splunk de Linux
hosts: all hosts: splunk_uf_Linux
become: true become: true
become_user: root become_user: root
vars: vars:

@ -1,7 +1,7 @@
- name: Copie de la configuration du deploiment server - name: Copie de la configuration du deploiment server
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
hosts: splunk_uf_Linux_TIC hosts: splunk_uf_Linux
tasks: tasks:
- name: Copier le répertoire dans SplunkForwarder - name: Copier le répertoire dans SplunkForwarder
copy: copy:
@ -14,3 +14,8 @@
command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt"
become: yes become: yes
become_user: "{{ splunk_user }}" become_user: "{{ splunk_user }}"
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} enable boot-start"
become: yes
become_user: "{{ splunk_user_uf }}"

@ -1,21 +0,0 @@
- name: Copie de la configuration du deploiment server
become: yes
become_user: "{{ privileged_user }}"
hosts: splunk_uf_Linux_TIA
tasks:
- name: Copier le répertoire dans SplunkForwarder
copy:
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
dest: /opt/splunkforwarder/etc/apps/
owner: splunk
group: splunk
- name: "Start Splunk via cli"
command: "{{ splunk_exec_uf }} enable boot-start"
become: yes
become_user: "{{ splunk_user }}"
- name: "Start Splunk via cli"
command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt"
become: yes
become_user: "{{ splunk_user }}"

@ -2,7 +2,7 @@
- name: Copie de la configuration du deploiment server - name: Copie de la configuration du deploiment server
become: yes become: yes
become_user: "{{ privileged_user }}" become_user: "{{ privileged_user }}"
hosts: all:!splunk_uf_Linux_TIC hosts: all:!splunk_uf_Linux
tasks: tasks:
- name: Copier le configuration DS dans Splunk - name: Copier le configuration DS dans Splunk
copy: copy:
@ -10,3 +10,13 @@
dest: /opt/splunk/etc/apps/ dest: /opt/splunk/etc/apps/
owner: splunk owner: splunk
group: splunk group: splunk
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
become: yes
become_user: "{{ splunk_user }}"
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} enable boot-start"
become: yes
become_user: "{{ splunk_user }}"

@ -1,22 +0,0 @@
---
- name: Copie de la configuration du deploiment server
become: yes
become_user: "{{ privileged_user }}"
hosts: splunk_indexer_TIA,splunk_cluster_master_TIA:!splunk_uf_Linux_TIA
tasks:
- name: Copier le configuration DS dans Splunk
copy:
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
dest: /opt/splunk/etc/apps/
owner: splunk
group: splunk
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} enable boot-start"
become: yes
become_user: "{{ splunk_user }}"
- name: "Start Splunk via cli"
command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt"
become: yes
become_user: "{{ splunk_user }}"

@ -1,28 +1,28 @@
--- ---
all_splunk_instances: all_splunk_instances:
children: children:
splunk_search_head_TIC: splunk_search_head:
hosts: hosts:
SVLCTPLOGPUB01.mom.fr: SVLCTPLOGPUB01.mom.fr:
SVLCTPLOGPUB02.mom.fr: SVLCTPLOGPUB02.mom.fr:
splunk_indexer_TIC: splunk_indexer:
hosts: hosts:
SVLCTPLOGIDX01.mom.fr: SVLCTPLOGIDX01.mom.fr:
SVLCTPLOGIDX02.mom.fr: SVLCTPLOGIDX02.mom.fr:
splunk_licence_master: splunk_licence_master:
hosts: hosts:
SVLCTPLOGLMR.mom.fr: SVLCTPLOGLMR.mom.fr:
splunk_uf_Linux_TIC: splunk_uf_Linux:
hosts: hosts:
SVLCTPSUPPFI01.mom.fr: SVLCTPSUPPFI01.mom.fr:
SVLCTPSUPPFI02.mom.fr: SVLCTPSUPPFI02.mom.fr:
splunk_uf_Windows_TIC: splunk_uf_Windows:
hosts: hosts:
SVWCTPSUPPFI01.mom.fr: SVWCTPSUPPFI01.mom.fr:
splunk_deployement_TIC: splunk_deployement:
hosts: hosts:
SVLCTPLOGSUP01.mom.fr: SVLCTPLOGSUP01.mom.fr:
splunk_monitoring_TIC: splunk_monitoring:
hosts: hosts:
SVLCTPLOGSUP01.mom.fr: SVLCTPLOGSUP01.mom.fr:
splunk_cluster_master: splunk_cluster_master:

@ -1,17 +0,0 @@
---
all_splunk_instances:
children:
splunk_indexer_TIA:
hosts:
SVLATPLOGIDX01.mom.fr:
SVLATPLOGIDX02.mom.fr:
splunk_uf_Linux_TIA:
hosts:
SVLATPSUPPFI01.mom.fr:
SVLATPSUPPFI02.mom.fr:
splunk_uf_Windows_TIA:
hosts:
SVWATPSUPPFI01.mom.fr:
splunk_cluster_master_TIA:
hosts:
SVLATPLOGCLM01.mom.fr:

@ -28,7 +28,7 @@
become: yes become: yes
become_user: root become_user: root
- hosts: splunk_indexer_TIC - hosts: splunk_indexer
become: true become: true
become_user: root become_user: root
tasks: tasks:

@ -1,5 +1,5 @@
--- ---
- hosts: splunk_uf_Linux_TIC - hosts: splunk_uf_Linux
tasks: tasks:
- name: Gathering Facts - name: Gathering Facts
include_tasks: roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml include_tasks: roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml

Loading…
Cancel
Save