/
main.yml
664 lines (533 loc) · 26.1 KB
/
main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
---
# ---- General repository layout ----
# Linux distribution managed by this reprepro instance
reprepro_distribution: '{{ ansible_distribution }}'
# Linux release managed by this reprepro instance
reprepro_distribution_release: '{{ ansible_distribution_release }}'
# List of codenames enabled in this repository, filtered by distribution
reprepro_codenames: '{{ reprepro_distributions | map(attribute="Codename") | list | sort | unique }}'
# List of architectures supported by this repository
reprepro_architectures: [ 'amd64', 'i386', 'source' ]
# List of components defined for local repositories
reprepro_components: [ 'main' ]
# The base FQDN used by reprepro
reprepro_fqdn: '{{ ansible_fqdn }}'
# The base domain used by reprepro
reprepro_domain: '{{ ansible_domain }}'
# Origin: field added to the repository configuration files
reprepro_origin: '{{ reprepro_domain.split(".")[0] | capitalize }}'
# List of mail addresses to where reprepro should send mail about changes in
# selected repositories
reprepro_admin_email: [ 'root@{{ reprepro_domain }}' ]
# ---- Webserver configuration ----
# List of domains for this APT repository
reprepro_domains: [ '{{ "apt." + reprepro_domain }}' ]
# List of IP addresses or CIDR subnets which are allowed to connect to the
# webserver with the repository. If empty, everyone can access the repository.
reprepro_allow: []
# List of IP addresses or CIDR subnets which are allowed to upload packages
# using WebDAV to /upload location. If empty, you can upload from anywhere.
reprepro_allow_upload: []
# Maximum size of upload in MB
reprepro_max_body_size: '20'
# Webserver authentication realm
reprepro_nginx_auth_realm: 'APT access is restricted'
# Name of webserver access policy to enable (see 'debops.nginx' role)
reprepro_nginx_access_policy: ''
# ---- Internal reprepro configuration ----
# Path where reprepro home directory is stored
reprepro_home: '/var/lib/reprepro'
# System user which manages reprepro repository
reprepro_user: 'reprepro'
# System group which manages reprepro repository and upload account
reprepro_group: 'reprepro'
# Directory for reprepro spool files
reprepro_spool: '{{ (ansible_local.root.spool
if (ansible_local|d() and ansible_local.root|d() and
ansible_local.root.spool|d())
else "/var/spool") + "/reprepro" }}'
# Directory where uploaded packages are stored
reprepro_upload: '{{ reprepro_spool + "/incoming" }}'
# Wheter to configure Nginx with DAV and inoticoming for uploads
reprepro_enable_inoticoming: True
# Directory where reprepro will create its repository structure.
# It will be served publicly by a HTTP/HTTPS webserver.
reprepro_repository_path: '/srv/www/sites/{{ reprepro_domains[0] }}/public'
# List of default components used in specific distribution. These lists will be
# used if components are not specified for a given repository.
reprepro_repository_components:
'debian': [ 'main', 'contrib', 'non-free' ]
'ubuntu': [ 'main', 'restricted', 'universe', 'multiverse' ]
# ---- GnuPG key configuration ----
# Settings for GPG key used to sign reprepro repository
reprepro_gpg_key_type: 'RSA'
reprepro_gpg_key_length: '4096'
reprepro_gpg_name: '{{ reprepro_domain.split(".")[0] | capitalize + " Automatic Signing Key" }}'
reprepro_gpg_email: '{{ reprepro_distribution | lower + "-packages@" + reprepro_domain }}'
reprepro_gpg_expire_days: '{{ (365 * 5) }}'
# Name of the snapshot file which contains reprepro GnuPG key
reprepro_gpg_snapshot_name: 'gnupg.tar'
# Directory on Ansible Controller where reprepro GnuPG key will be archived
reprepro_gpg_snapshot_path: '{{ secret + "/reprepro/" + reprepro_domain + "/snapshots/" +
reprepro_fqdn + "/" + reprepro_distribution | lower }}'
# Sign the Release files with default GPG key
reprepro_signwith: 'default'
# ---- conf/distributions ----
# List of enabled distributions filtered by repository (debian | ubuntu)
reprepro_distributions: '{{ reprepro_distributions_local +
reprepro_distributions_local_backports }}'
# Repositories for local packages
# By default, debops.reprepro configures two repositories for staging and
# production. You can only push packages to -staging repository, from which
# they can be promoted to -production using 'reprepro pull' on the specific
# user account.
reprepro_distributions_local:
- Distribution: 'debian'
Description: '{{ reprepro_origin }} staging repository for Debian {{ reprepro_debian_previous[reprepro_distribution_release]|d() | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Codename: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
NotAutomatic: 'yes'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'debian'
Description: '{{ reprepro_origin }} staging repository for Debian {{ reprepro_distribution_release | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
Codename: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
Suite: '{{ reprepro_debian_suites[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_distribution_release]|d() | join(" ") }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
NotAutomatic: 'yes'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'debian'
Description: '{{ reprepro_origin }} staging repository for Debian {{ reprepro_debian_next[reprepro_distribution_release]|d() | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Codename: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_next[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_next[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
NotAutomatic: 'yes'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'ubuntu'
Description: '{{ reprepro_origin }} staging repository for Ubuntu {{ reprepro_distribution_release | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
Codename: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
NotAutomatic: 'yes'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'debian'
Description: '{{ reprepro_origin }} production repository for Debian {{ reprepro_debian_previous[reprepro_distribution_release]|d() | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower }}'
Codename: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
Pull: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "_" + reprepro_origin | lower + "_from_staging" }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'debian'
Description: '{{ reprepro_origin }} production repository for Debian {{ reprepro_distribution_release | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower }}'
Codename: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_distribution_release]|d() | join(" ") }}'
Suite: '{{ reprepro_debian_suites[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
Pull: '{{ reprepro_distribution_release + "_" + reprepro_origin | lower + "_from_staging" }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'debian'
Description: '{{ reprepro_origin }} production repository for Debian {{ reprepro_debian_next[reprepro_distribution_release]|d() | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower }}'
Codename: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_next[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_next[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower }}'
Uploaders: 'uploaders/{{ reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
Pull: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "_" + reprepro_origin | lower + "_from_staging" }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
- Distribution: 'ubuntu'
Description: '{{ reprepro_origin }} production repository for Ubuntu {{ reprepro_distribution_release | capitalize }}'
Origin: '{{ reprepro_origin }}'
Label: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower }}'
Codename: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower }}'
Components: '{{ reprepro_components | join(" ") }}'
UDebComponents: False
Tracking: 'keep'
Pull: '{{ reprepro_distribution_release + "_" + reprepro_origin | lower + "_from_staging" }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
# Repository for backports created locally for currently supported distributions
reprepro_distributions_local_backports:
# Repository for previous Debian release backports
- Distribution: 'debian'
Description: 'Packages for {{ reprepro_distribution }} backported by {{ reprepro_origin }}'
Codename: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-backports" }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() + "-backports" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Uploaders: '{{ "uploaders/" + reprepro_debian_previous[reprepro_distribution_release]|d() + "-backports" }}'
Label: '{{ reprepro_distribution }}'
Origin: '{{ reprepro_origin }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
# Repository for current Debian release backports
- Distribution: 'debian'
Description: 'Packages for {{ reprepro_distribution }} backported by {{ reprepro_origin }}'
Codename: '{{ reprepro_distribution_release + "-backports" }}'
Suite: '{{ reprepro_debian_suites[reprepro_distribution_release]|d() + "-backports" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_distribution_release]|d() | join(" ") }}'
Uploaders: '{{ "uploaders/" + reprepro_distribution_release + "-backports" }}'
Label: '{{ reprepro_distribution }}'
Origin: '{{ reprepro_origin }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
# Repository for next Debian release backports
- Distribution: 'debian'
Description: 'Packages for {{ reprepro_distribution }} backported by {{ reprepro_origin }}'
Codename: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-backports" }}'
Suite: '{{ reprepro_debian_suites[reprepro_debian_next[reprepro_distribution_release]|d()]|d() + "-backports" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_next[reprepro_distribution_release]|d()]|d() | join(" ") }}'
Uploaders: '{{ "uploaders/" + reprepro_debian_next[reprepro_distribution_release]|d() + "-backports" }}'
Label: '{{ reprepro_distribution }}'
Origin: '{{ reprepro_origin }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
# Repository for Ubuntu backports for current release
- Distribution: 'ubuntu'
Description: 'Packages for {{ reprepro_distribution }} backported by {{ reprepro_origin }}'
Codename: '{{ reprepro_distribution_release }}-backports'
Uploaders: '{{ "uploaders/" + reprepro_distribution_release + "-backports" }}'
Label: '{{ reprepro_distribution }}'
Origin: '{{ reprepro_origin }}'
Scripts: |
{% if reprepro_admin_email %}
--type=dsc email-changes.sh
{% endif %}
# Mirror repositories for Debian GNU/Linux (not enabled by default)
reprepro_distributions_mirror_debian:
- Distribution: 'debian'
Description: 'Debian GNU/Linux 7 Wheezy'
Codename: 'wheezy'
Architectures: '{{ reprepro_debian_architectures["wheezy"] | join(" ") }}'
Label: 'Debian'
Suite: 'oldstable'
Origin: 'Debian'
Tracking: 'minimal'
Update: 'debian-wheezy'
- Distribution: 'debian'
Description: 'Debian GNU/Linux 7 Wheezy Updates'
Codename: 'wheezy-updates'
Architectures: '{{ reprepro_debian_architectures["wheezy"] | join(" ") }}'
Label: 'Debian'
Suite: 'oldstable-updates'
Origin: 'Debian'
Tracking: 'minimal'
Update: 'debian-wheezy-updates'
- Distribution: 'debian'
Description: 'Debian GNU/Linux 8 Jessie'
Codename: 'jessie'
Architectures: '{{ reprepro_debian_architectures["jessie"] | join(" ") }}'
Label: 'Debian'
Suite: 'stable'
Origin: 'Debian'
Tracking: 'minimal'
Update: 'debian-jessie'
- Distribution: 'debian'
Description: 'Debian GNU/Linux 8 Jessie Updates'
Codename: 'jessie-updates'
Architectures: '{{ reprepro_debian_architectures["jessie"] | join(" ") }}'
Label: 'Debian'
Suite: 'stable-updates'
Origin: 'Debian'
Tracking: 'minimal'
Update: 'debian-jessie-updates'
# Mirror repositories for Ubuntu Linux (not enabled by default)
reprepro_distributions_mirror_ubuntu:
- Distribution: 'ubuntu'
Codename: 'trusty'
Label: 'Ubuntu'
Origin: 'Ubuntu'
Suite: 'trusty'
Version: '14.04'
Tracking: 'minimal'
Update: 'ubuntu-trusty'
Description: 'Ubuntu Trusty 14.04 LTS'
- Distribution: 'ubuntu'
Codename: 'trusty-updates'
Label: 'Ubuntu'
Origin: 'Ubuntu'
Suite: 'trusty-updates'
Version: '14.04'
Tracking: 'minimal'
Update: 'ubuntu-trusty-updates'
Description: 'Ubuntu Trusty 14.04 LTS Updates'
# ---- conf/incoming ----
reprepro_incoming:
- Distribution: '{{ reprepro_distribution | lower }}'
Name: 'incoming'
Allow: '{{ reprepro_incoming_allow | join(" ") }}'
# List of incoming Allow rules enabled by default
reprepro_incoming_allow: '{{ reprepro_incoming_allow_local[reprepro_distribution | lower] +
reprepro_incoming_allow_distribution[reprepro_distribution | lower] }}'
# Incoming configuration for local repositories
reprepro_incoming_allow_local:
'debian':
# <prev_release>-<origin>-staging
- '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
# <prev_suite>-<origin>-staging><prev_release>-<origin>-staging
- '{{ reprepro_debian_suites[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower + "-staging" }}>{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
# <release>-<origin>-staging
- '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
# <suite>-<origin>-staging><release>-<origin>-staging
- '{{ reprepro_debian_suites[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}>{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
# <next_release>-<origin>-staging
- '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
# <next_suite>-<origin>-staging><next_release>-<origin>-staging
- '{{ reprepro_debian_suites[reprepro_debian_next[reprepro_distribution_release]|d()]|d() + "-" + reprepro_origin | lower + "-staging" }}>{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
'ubuntu':
# <release>-<origin>-staging
- '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
# Incoming configuration for backport repositories
reprepro_incoming_allow_distribution:
'debian':
# <prev_release>-backports
- '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-backports" }}'
# <prev_suite>-backports><prev_release>-backports
- '{{ reprepro_debian_suites[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() + "-backports>" + reprepro_debian_previous[reprepro_distribution_release]|d() + "-backports" }}'
# <release>-backports
- '{{ reprepro_distribution_release + "-backports" }}'
# <suite>-backports><release>-backports
- '{{ reprepro_debian_suites[reprepro_distribution_release]|d() + "-backports>" + reprepro_distribution_release + "-backports" }}'
# <next_release>-backports
- '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-backports" }}'
# <next_suite>-backports><next_release>-backports
- '{{ reprepro_debian_suites[reprepro_debian_next[reprepro_distribution_release]|d()]|d() + "-backports>" + reprepro_debian_next[reprepro_distribution_release]|d() + "-backports" }}'
'ubuntu':
# <release>-backports
- '{{ reprepro_distribution_release + "-backports" }}'
# ---- conf/uploaders ----
# Configuration of uploaders files for each repository (Name relative to the
# 'conf/' directory)
reprepro_uploaders: '{{ reprepro_uploaders_local +
reprepro_uploaders_distribution[reprepro_distribution | lower] }}'
# Definition of uploaders for local repositories
reprepro_uploaders_local:
- Filename: '{{ reprepro_origin | lower }}'
Contents: |
{{ reprepro_uploaders_default_rules }}
# Definition of uploaders for backport repositories
reprepro_uploaders_distribution:
'debian':
# <prev_release>-backports
- Filename: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-backports" }}'
Contents: |
{{ reprepro_uploaders_default_rules }}
# <release>-backports
- Filename: '{{ reprepro_distribution_release + "-backports" }}'
Contents: |
{{ reprepro_uploaders_default_rules }}
# <next_release>-backports
- Filename: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-backports" }}'
Contents: |
{{ reprepro_uploaders_default_rules }}
'ubuntu':
# <release>-backports
- Filename: '{{ reprepro_distribution_release + "-backports" }}'
Contents: |
{{ reprepro_uploaders_default_rules }}
# By default use the same rules for all repositories
reprepro_uploaders_default_rules: |
allow * by any key
# ---- conf/pulls ----
# List of pull configurations enabled per distribution
reprepro_pulls: '{{ reprepro_pulls_local }}'
# Pull configuration for local -staging and -production repositories, packages
# from -staging are pulled to -production
reprepro_pulls_local:
- Distribution: 'debian'
Name: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "_" + reprepro_origin | lower + "_from_staging" }}'
From: '{{ reprepro_debian_previous[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_previous[reprepro_distribution_release]|d()]|d() | join(" ") }}'
- Distribution: 'debian'
Name: '{{ reprepro_distribution_release + "_" + reprepro_origin | lower + "_from_staging" }}'
From: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_distribution_release]|d() | join(" ") }}'
- Distribution: 'debian'
Name: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "_" + reprepro_origin | lower + "_from_staging" }}'
From: '{{ reprepro_debian_next[reprepro_distribution_release]|d() + "-" + reprepro_origin | lower + "-staging" }}'
Architectures: '{{ reprepro_debian_architectures[reprepro_debian_next[reprepro_distribution_release]|d()]|d() | join(" ") }}'
- Distribution: 'ubuntu'
Name: '{{ reprepro_distribution_release + "_" + reprepro_origin | lower + "_from_staging" }}'
From: '{{ reprepro_distribution_release + "-" + reprepro_origin | lower + "-staging" }}'
# ---- conf/updates ----
# List of repository mirrors per distribution (not enabled by default)
reprepro_updates: '{{ reprepro_updates_debian +
reprepro_updates_ubuntu }}'
# Mirrors for Debian GNU/Linux distribution
reprepro_updates_debian:
- Distribution: 'debian'
Name: 'debian-wheezy'
Method: 'http://httpredir.debian.net/debian'
Fallback: 'http://ftp.us.debian.org/debian'
Suite: 'wheezy'
VerifyRelease: '46925553'
- Distribution: 'debian'
Name: 'debian-wheezy-updates'
Method: 'http://httpredir.debian.net/debian'
Fallback: 'http://ftp.us.debian.org/debian'
Suite: 'wheezy-updates'
VerifyRelease: '46925553'
- Distribution: 'debian'
Name: 'debian-jessie'
Method: 'http://httpredir.debian.net/debian'
Fallback: 'http://ftp.us.debian.org/debian'
Suite: 'jessie'
VerifyRelease: '2B90D010'
- Distribution: 'debian'
Name: 'debian-jessie-updates'
Method: 'http://httpredir.debian.net/debian'
Fallback: 'http://ftp.us.debian.org/debian'
Suite: 'jessie-updates'
VerifyRelease: '2B90D010'
# Mirrors for Ubuntu Linux distribution
reprepro_updates_ubuntu:
- Distribution: 'ubuntu'
Name: 'ubuntu-trusty'
Method: 'http://us.archive.ubuntu.com/ubuntu'
Fallback: 'http://archive.ubuntu.com/ubuntu'
Suite: 'trusty'
VerifyRelease: '437D05B5'
- Distribution: 'ubuntu'
Name: 'ubuntu-trusty-updates'
Method: 'http://us.archive.ubuntu.com/ubuntu'
Fallback: 'http://archive.ubuntu.com/ubuntu'
Suite: 'trusty-updates'
VerifyRelease: '437D05B5'
# Configuration for HTTP server
reprepro_nginx_server_http:
by_role: 'debops.reprepro'
enabled: True
ssl: False
redirect_to_ssl: '{{ reprepro_nginx_access_policy }}'
filename: '{{ reprepro_domains[0] + "_http" }}'
name: '{{ reprepro_domains }}'
root: '{{ reprepro_repository_path }}'
location:
'/': |
try_files $uri $uri/ =404;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
location_allow:
'/': '{{ reprepro_allow }}'
# Configuration for HTTPS server
reprepro_nginx_server_https:
by_role: 'debops.reprepro'
enabled: True
listen: False
filename: '{{ reprepro_domains[0] + "_https" }}'
name: '{{ reprepro_domains }}'
root: '{{ reprepro_repository_path }}'
access_policy: '{{ reprepro_nginx_access_policy }}'
auth_basic_realm: '{{ reprepro_nginx_auth_realm }}'
options: |
client_max_body_size {{ reprepro_max_body_size }}M;
location_list:
- pattern: '/'
options: |
try_files $uri $uri/ =404;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
allow: '{{ reprepro_allow }}'
- pattern: '/upload'
options: |
alias {{ reprepro_upload }};
dav_access all:rw;
dav_methods PUT;
limit_except PUT {
deny all;
}
allow: '{{ reprepro_allow_upload }}'
enabled: '{{ reprepro_enable_inoticoming }}'
# Debian previous releases
reprepro_debian_previous:
'wheezy': 'squeeze'
'jessie': 'wheezy'
'stretch': 'jessie'
# Debian next releases
reprepro_debian_next:
'wheezy': 'jessie'
'jessie': 'stretch'
# Debian releases by suite
reprepro_debian_releases:
'oldoldstable': 'squeeze'
'oldstable': 'wheezy'
'stable': 'jessie'
'testing': 'stretch'
# Debian suites by release
reprepro_debian_suites:
'squeeze': 'oldoldstable'
'wheezy': 'oldstable'
'jessie': 'stable'
'stretch': 'testing'
# List of Debian architectures by release
reprepro_debian_architectures:
'squeeze': [ 'source', 'amd64', 'armel', 'i386' ]
'wheezy': [ 'source', 'amd64', 'armel', 'armhf', 'i386' ]
'jessie': [ 'source', 'amd64', 'arm64', 'armel', 'armhf', 'i386' ]
'stretch': [ 'source', 'amd64', 'arm64', 'armel', 'armhf', 'i386' ]