parent
5afbdeb9fd
commit
a64db2afec
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: "Deploy Conf for Splunk UniversalForwarder Linux"
|
||||||
|
become: yes
|
||||||
|
hosts: splunk_hf_Linux
|
||||||
|
tasks:
|
||||||
|
- name: Deploy_Hf_LIN
|
||||||
|
include_tasks: roles/splunk_deploy_uf/tasks/Deploy_Conf-to-hf.yml
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
- hosts: splunk_hf_Linux
|
||||||
|
tasks:
|
||||||
|
- name: "Configuration des lvm hf"
|
||||||
|
include_tasks: roles/splunk_common_uf/tasks/pre_install_subtasks/config_lvm_uf.yml
|
||||||
|
|
||||||
|
|
||||||
|
- hosts: splunk_hf_Linux
|
||||||
|
tasks:
|
||||||
|
- name: Gathering Facts
|
||||||
|
include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml
|
||||||
|
when:
|
||||||
|
- splunk_get_fact is not defined
|
||||||
|
|
||||||
|
- hosts: splunk_hf_Linux
|
||||||
|
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_hf_Linux
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- 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 }}"
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
- name: Copier le répertoire dans SplunkForwarder
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ privileged_user }}"
|
||||||
|
copy:
|
||||||
|
src: "{{ playbook_dir }}/Apps_for_Splunk/01-Conf_deploy_client"
|
||||||
|
dest: /opt/splunk/etc/apps/
|
||||||
|
owner: splunk
|
||||||
|
group: splunk
|
||||||
|
|
||||||
|
- name: "Stop Splunk via cli"
|
||||||
|
command: "{{ splunk_exec }} stop"
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ splunk_user }}"
|
||||||
|
|
||||||
|
- name: "Enable boot-start Splunk via cli"
|
||||||
|
command: "{{ splunk_exec }} enable boot-start"
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ privileged_user }}"
|
||||||
|
|
||||||
|
- name: "Start Splunk via cli"
|
||||||
|
command: "{{ splunk_exec }} start"
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ privileged_user }}"
|
||||||
Loading…
Reference in new issue