-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure_repository.yml
46 lines (37 loc) · 1.42 KB
/
configure_repository.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- hosts: repository
user: root
tasks:
- name: Create repository root directory
file: path="{{ splunk_repository.repository_root }}"
state=directory
- name: Create repository apps directory
file: path="{{ splunk_repository.repository_root }}/apps"
state=directory
- name: Create repository packages directory
file: path="{{ splunk_repository.repository_root }}/packages"
state=directory
- name: Create distServerKeys directory
file: path="{{ splunk_repository.repository_root }}/distServerKeys"
state=directory
- name: Create licenses directory
file: path="{{ splunk_repository.repository_root }}/licenses"
state=directory
- name: Create licenses/enterprise directory
file: path="{{ splunk_repository.repository_root }}/licenses/enterprise"
state=directory
- name: Set repository owner/group
file: path={{ splunk_repository.repository_root }}
recurse=yes
owner={{ splunk_repository.repository_owner }}
group={{ splunk_repository.repository_group }}
- name: Set repository directory mode
file: path={{ splunk_repository.repository_root }}
mode=750
- name: Find app roles
command: "ls roles/apps"
register: app_roles
- name: Create deploy_apps.yml
template: src=roles/common/templates/deploy_apps.yml.j2
dest=./deploy_apps.yml
mode=0640