From f6398211621bca9186b2484ad878434410126b99 Mon Sep 17 00:00:00 2001 From: admingit Date: Fri, 27 Dec 2024 18:38:11 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'install=5Fsplunk.y?= =?UTF-8?q?ml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_splunk.yml | 134 ++++++++++++++++++++++----------------------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/install_splunk.yml b/install_splunk.yml index e72f3b9..7514694 100755 --- a/install_splunk.yml +++ b/install_splunk.yml @@ -1,67 +1,67 @@ -#- hosts: splunk_indexer -# tasks: -# - name: Gathering Facts -# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_idx.yml - -#- hosts: splunk_cluster_master -# tasks: -# - name: Gathering Facts -# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml - -#- hosts: splunk_search_head -# tasks: -# - name: Gathering Facts -# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml - -- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows - tasks: - - name: Gathering Facts - include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml - when: - - splunk_get_fact is not defined - -- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows - serial: - - 1 - - 100% - roles: - - splunk_common - tags: all,installation - -- hosts: localhost - connection: local - tasks: - - name: Cleanup secret - file: - dest: "/tmp/splunk_secret" - state: "absent" - become: yes - become_user: root - -- hosts: splunk_indexer - become: true - become_user: root - tasks: - - name: Changer le propriétaire et le groupe du répertoire1 - file: - path: /data/splunk_data - owner: splunk - group: splunk - state: directory - - - name: Changer le propriétaire et le groupe du répertoire2 - file: - path: /data_cold/splunk_data - owner: splunk - group: splunk - state: directory - - - name: "Start Splunk via cli" - command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" - become: yes - become_user: "{{ privileged_user }}" - - - name: "Boot-Start Splunk via cli" - command: "{{ splunk_exec }} enable boot-start" - become: yes - become_user: "{{ privileged_user }}" +- hosts: splunk_indexer + tasks: + - name: Gathering Facts + include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_idx.yml + +- hosts: splunk_cluster_master + tasks: + - name: Gathering Facts + include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml + +- hosts: splunk_search_head + tasks: + - name: Gathering Facts + include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml + +- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows + tasks: + - name: Gathering Facts + include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml + when: + - splunk_get_fact is not defined + +- hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows + serial: + - 1 + - 100% + roles: + - splunk_common + tags: all,installation + +- hosts: localhost + connection: local + tasks: + - name: Cleanup secret + file: + dest: "/tmp/splunk_secret" + state: "absent" + become: yes + become_user: root + +- hosts: splunk_indexer + become: true + become_user: root + tasks: + - name: Changer le propriétaire et le groupe du répertoire1 + file: + path: /data/splunk_data + owner: splunk + group: splunk + state: directory + + - name: Changer le propriétaire et le groupe du répertoire2 + file: + path: /data_cold/splunk_data + owner: splunk + group: splunk + state: directory + + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" + become: yes + become_user: "{{ privileged_user }}" + + - name: "Boot-Start Splunk via cli" + command: "{{ splunk_exec }} enable boot-start" + become: yes + become_user: "{{ privileged_user }}"