-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreprepro.pb
51 lines (51 loc) · 1.51 KB
/
reprepro.pb
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
47
48
49
50
51
---
# TODO: inoticoming to watch incoming
- hosts: all
vars:
TYPE: reprepro
INSTANCE: main
LOG_DIRS: true
VAR_DIRS:
- www/dists
- www/pool
- db
- incoming
- tmp/list
- tmp/incoming
DIRS:
- .z
ETC_FILES:
- distributions
- options
- incoming
LINKS:
dists: var/www/dists
pool: var/www/pool
conf: etc
.z/reprepro.env: env
PKGS:
- reprepro
BINS:
- build.sh
GIT_BYPASS: True
nginx_prio: 50
vars_files:
- [ "private/reprepro/$configset.yaml", "private/reprepro.yaml", "examples-private/reprepro.yaml" ]
tasks:
- include: tasks/compfuzor.includes type=srv
- template: src=files/reprepro/override dest="{{ETC}}/override-dsc.{{item.name}}"
with_items: REPREPROS
when: item.overrides|default(False)
- template: src=files/reprepro/override dest="{{ETC}}/override-deb.{{item.name}}"
with_items: REPREPROS
when: item.overrides|default(False)
- file: path="{{VAR}}/incoming/{{item.name}}" state=directory
with_items: REPREPROS
- file: path="{{VAR}}/tmp/incoming/{{item.name}}" state=directory
with_items: REPREPROS
- file: path="{{VAR}}" group=www-data mode=710
- file: path="{{VAR}}" group=www-data mode=750 recurse=true
# TODO: private/ keys install
- include: tasks/nginx-confs.tasks hosts={{REPREPROS}} nginx="{{NGINX_ETC}}" conf="files/reprepro/nginx.conf"
#- include: tasks/systemd.alias.tasks src="{{NGINX}}" dest="{{NAME}}"
- include: tasks/systemd.thunk.tasks service="{{NGINX}}"