2010-10-25 19:58:14 +02:00
|
|
|
# This file is managed by puppet
|
2010-10-25 07:13:44 +02:00
|
|
|
# all local modifications will be overwritten
|
2007-06-25 11:50:19 +02:00
|
|
|
|
2015-05-11 16:49:27 +02:00
|
|
|
### Debian current: <%= codename=scope.lookupvar('::debian_codename') %>
|
2010-10-06 11:56:56 +02:00
|
|
|
|
|
|
|
# basic
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= lrepos=scope.lookupvar('apt::real_repos') %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src=scope.lookupvar('apt::include_src') -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
|
2010-10-10 12:32:23 +02:00
|
|
|
<% end -%>
|
2010-10-06 11:56:56 +02:00
|
|
|
|
|
|
|
# security
|
2015-05-11 16:49:27 +02:00
|
|
|
<% if ((release=scope.lookupvar('::debian_release')) == "stable" || release == "oldstable") -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
|
2010-10-10 12:32:23 +02:00
|
|
|
<% end -%>
|
2014-12-06 03:29:09 +01:00
|
|
|
<% else -%>
|
|
|
|
# There is no security support for <%= release %>
|
2010-10-10 12:32:23 +02:00
|
|
|
<% end -%>
|
2010-10-06 11:56:56 +02:00
|
|
|
|
2015-06-09 17:28:54 +02:00
|
|
|
<% if use_backports=scope.lookupvar('apt::use_backports') -%>
|
2010-10-06 11:56:56 +02:00
|
|
|
# backports
|
2015-06-09 17:25:34 +02:00
|
|
|
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
|
2010-10-06 11:56:56 +02:00
|
|
|
# There is no backports archive for <%= release %>
|
2015-06-09 17:25:34 +02:00
|
|
|
<% else -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= lrepos %>
|
2015-06-09 17:25:34 +02:00
|
|
|
<% if include_src -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
|
2015-06-09 17:25:34 +02:00
|
|
|
<% end
|
|
|
|
end
|
2014-04-18 10:59:26 +02:00
|
|
|
end -%>
|
2008-09-28 23:56:11 +02:00
|
|
|
|
2012-06-08 17:16:46 +02:00
|
|
|
<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
|
2010-10-06 12:00:32 +02:00
|
|
|
# volatile
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
|
2010-10-06 12:00:32 +02:00
|
|
|
# There is no volatile archive for <%= release %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% else -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% end
|
|
|
|
end
|
|
|
|
end -%>
|
2010-10-06 12:00:32 +02:00
|
|
|
|
2015-02-07 17:12:55 +01:00
|
|
|
<% if use_lts=scope.lookupvar('apt::use_lts') -%>
|
|
|
|
# LTS
|
2015-05-11 16:49:27 +02:00
|
|
|
<% if release_lts=scope.lookupvar('::debian_lts') == "false" -%>
|
2015-02-07 17:12:55 +01:00
|
|
|
# There is no LTS archive for <%= release %>
|
|
|
|
<% else -%>
|
|
|
|
deb <%= debian_url %> <%= codename %>-lts <%= lrepos %>
|
|
|
|
<% if include_src -%>
|
|
|
|
deb-src <%= debian_url %> <%= codename %>-lts <%= lrepos %>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
|
2012-06-08 17:16:46 +02:00
|
|
|
<% if next_release=scope.lookupvar('apt::use_next_release') -%>
|
2015-05-11 16:49:27 +02:00
|
|
|
### Debian next: <%= next_release=scope.lookupvar('::debian_nextrelease') ; next_codename=scope.lookupvar('::debian_nextcodename') %>
|
2010-10-06 12:39:50 +02:00
|
|
|
|
|
|
|
# basic
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% end -%>
|
2010-10-06 12:39:50 +02:00
|
|
|
|
|
|
|
# security
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if (next_release == "unstable" || next_release == "experimental") -%>
|
2010-10-06 12:39:50 +02:00
|
|
|
# There is no security support for <%= next_release %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% else -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src then -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% end
|
|
|
|
end -%>
|
2010-10-06 12:39:50 +02:00
|
|
|
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if use_volatile -%>
|
2010-10-06 12:39:50 +02:00
|
|
|
# volatile
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if (next_release == "testing" || next_release == "unstable" || next_release == "experimental") -%>
|
2010-10-06 12:39:50 +02:00
|
|
|
# There is no volatile archive for <%= next_release %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% else -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% if include_src -%>
|
2012-06-18 22:33:42 +02:00
|
|
|
deb-src <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
2014-04-18 10:59:26 +02:00
|
|
|
<% end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end -%>
|