Try to retire the site module: move site::aptrepo to base
[mirror/dsa-puppet.git] / modules / base / templates / aptrepo.erb
1 ##
2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ###
5
6 <%=
7   url        = [scope.lookupvar('url')  ].flatten
8   suite      = [scope.lookupvar('suite')].flatten
9   components = [scope.lookupvar('components')].flatten.join(' ')
10
11   lines = []
12   url.each do |u|
13     suite.each do |s|
14       lines << "deb     #{u}    #{s}    #{components}"
15     end
16   end
17   lines.join("\n")
18 %>