summaryrefslogtreecommitdiff
path: root/templates/Debian/sources.list.erb
blob: eaee3380cebd4b01a98366a52f46276cdbdfa7de (plain)
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
# This file is managed by puppet
# all local modifications will be overwritten

### Debian current: <%= codename = scope.lookupvar('::lsbdistcodename') %>

# basic
deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= repos=scope.lookupvar('apt::repos') %>
<% if scope.lookupvar('apt::include_src')  -%>
deb-src <%= debian_url %> <%= codename %> <%= repos %>
<% end -%>

# security
<% if ((release=scope.lookupvar('apt::release')) == "unstable" || release == "experimental") -%>
# There is no security support for <%= release %>
<% else -%>
deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= repos %>
<% if include_src -%>
deb-src <%= security_url %> <%= codename %>/updates <%= repos %>
<% end -%>
<% end -%>

# backports
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no backports archive for <%= release %>
<% else -%>
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= repos %>
<% if include_src -%>
deb-src <%= backports_url %> <%= codename %>-backports <%= repos %>
<% end -%>
<% end -%>

<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
# volatile
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no volatile archive for <%= release %>
<% else -%>
<% if (codename == "lenny" || codename == "etch") -%>
deb <%= volatile_url=scope.lookupvar('apt::volatile_url') %> <%= codename %>/volatile <%= repos %>
<% if include_src -%>
deb-src <%= volatile_url %> <%= codename %>/volatile <%= repos %>
<% end -%>
<% else -%>
deb <%= debian_url %> <%= codename %>-updates <%= repos %>
<% if include_src -%>
deb-src <%= debian_url %> <%= codename %>-updates <%= repos %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>

<% if next_release=scope.lookupvar('apt::use_next_release') -%>
### Debian next: <%= next_codename=scope.lookupvar('apt::next_codename') %>

# basic
deb <%= debian_url %> <%= next_codename %> <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %> <%= repos %>
<% end -%>

# security
<% if (next_release == "unstable" || next_release == "experimental") -%>
# There is no security support for <%= next_release %>
<% else -%>
deb <%= security_url %> <%= next_codename %>/updates <%= repos %>
<% if include_src then -%>
deb-src <%= security_url %> <%= next_codename %>/updates <%= repos %>
<% end -%>
<% end -%>

<% if use_volatile -%>
# volatile
<% if (next_release == "testing" || next_release == "unstable" || next_release == "experimental") -%>
# There is no volatile archive for <%= next_release %>
<% else -%>
<% if (next_codename == "lenny" || next_codename == "etch") -%>
deb <%= volatile_url %> <%= next_codename %>/volatile <%= repos %>
<% if include_src then -%>
deb-src <%= volatile_url %> <%= next_codename %>/volatile <%= repos %>
<% end -%>
<% else -%>
deb <%= debian_url %> <%= next_codename %>-updates <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %>-updates <%= repos %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>
<% end -%>