module-apt/templates/Debian/sources.list.erb

89 lines
3.1 KiB
Text
Raw Normal View History

# This file is managed by puppet
# all local modifications will be overwritten
### Debian current: <%= codename=scope.lookupvar('apt::codename') %>
# basic
deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= lrepos=scope.lookupvar('apt::real_repos') %>
2012-06-08 17:16:46 +02:00
<% if scope.lookupvar('apt::include_src') -%>
deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
# security
2012-06-08 17:16:46 +02:00
<% if ((release=scope.lookupvar('apt::release')) == "unstable" || release == "experimental") -%>
# There is no security support for <%= release %>
2010-10-10 12:38:18 +02:00
<% else -%>
deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= lrepos %>
2012-06-08 17:16:46 +02:00
<% if include_src -%>
deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
<% end -%>
# backports
2010-10-10 12:38:18 +02:00
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no backports archive for <%= release %>
2010-10-10 12:38:18 +02:00
<% else -%>
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= lrepos %>
2012-06-08 17:16:46 +02:00
<% if include_src -%>
deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
<% end -%>
2012-06-08 17:16:46 +02:00
<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
# volatile
2010-10-10 12:38:18 +02:00
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no volatile archive for <%= release %>
2010-10-10 12:38:18 +02:00
<% else -%>
<% if (codename == "lenny" || codename == "etch") -%>
deb <%= volatile_url=scope.lookupvar('apt::volatile_url') %> <%= codename %>/volatile <%= lrepos %>
2012-06-08 17:16:46 +02:00
<% if include_src -%>
deb-src <%= volatile_url %> <%= codename %>/volatile <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
<% else -%>
deb <%= debian_url %> <%= codename %>-updates <%= lrepos %>
2012-06-08 17:16:46 +02:00
<% if include_src -%>
deb-src <%= debian_url %> <%= codename %>-updates <%= lrepos %>
<% end -%>
<% end -%>
2010-10-10 12:32:23 +02:00
<% end -%>
<% end -%>
2012-06-08 17:16:46 +02:00
<% if next_release=scope.lookupvar('apt::use_next_release') -%>
### Debian next: <%= next_codename=scope.lookupvar('apt::next_codename') %>
# basic
deb <%= debian_url %> <%= next_codename %> <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %> <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
# security
2010-10-10 12:38:18 +02:00
<% if (next_release == "unstable" || next_release == "experimental") -%>
# There is no security support for <%= next_release %>
2010-10-10 12:38:18 +02:00
<% else -%>
deb <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% if include_src then -%>
deb-src <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
<% end -%>
2010-10-10 12:38:18 +02:00
<% if use_volatile -%>
# volatile
2010-10-10 12:38:18 +02:00
<% if (next_release == "testing" || next_release == "unstable" || next_release == "experimental") -%>
# There is no volatile archive for <%= next_release %>
2010-10-10 12:38:18 +02:00
<% else -%>
<% if (next_codename == "lenny" || next_codename == "etch") -%>
deb <%= volatile_url %> <%= next_codename %>/volatile <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% if include_src then -%>
deb-src <%= volatile_url %> <%= next_codename %>/volatile <%= lrepos %>
2010-10-10 12:32:23 +02:00
<% end -%>
<% else -%>
deb <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
<% end -%>
<% end -%>
2010-10-10 12:32:23 +02:00
<% end -%>
<% end -%>
<% end -%>