############# config ##################
#
set base_path    /var/spool/repo-mirror
#
set mirror_path  /var/spool/repo-mirror
set skel_path    /var/spool/apt-mirror/skel
set var_path     /var/spool/apt-mirror/var
set cleanscript  /var/spool/apt-mirror/var/clean.sh
set defaultarch  <%= node['multi_repo']['mirrors']['ubuntu_arch'].first %>
set postmirror_script /var/spool/apt-mirror/var/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

<% node['multi_repo']['mirrors']['ubuntu_releases'].each do |release| %>
<% node['multi_repo']['mirrors']['ubuntu_arch'].each do |arch| %>
deb-<%= arch %> <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %> <%= release %> main <%= node['multi_repo']['mirrors']['ubuntu_components'] %>
<% node['multi_repo']['mirrors']['ubuntu_release_updates'].each do |update| %>
deb-<%= arch %> <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %> <%= release %>-<%= update %><%= node['multi_repo']['mirrors']['ubuntu_components'] %>

<% end %>

<% end %>
<% end %>


clean <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %>
############# config ##################
#
set base_path    /var/spool/repo-mirror
#
set mirror_path  /var/spool/repo-mirror
set skel_path    /var/spool/apt-mirror/skel
set var_path     /var/spool/apt-mirror/var
set cleanscript  /var/spool/apt-mirror/var/clean.sh
set defaultarch  <%= node['multi_repo']['mirrors']['ubuntu_arch'].first %>
set postmirror_script /var/spool/apt-mirror/var/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

<% node['multi_repo']['mirrors']['ubuntu_releases'].each do |release| %>
<% node['multi_repo']['mirrors']['ubuntu_arch'].each do |arch| %>
deb-<%= arch %> <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %> <%= release %> main <%= node['multi_repo']['mirrors']['ubuntu_components'].join(" ") %>
<% node['multi_repo']['mirrors']['ubuntu_release_updates'].each do |update| %>
deb-<%= arch %> <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %> <%= release %>-<%= update %><%= node['multi_repo']['mirrors']['ubuntu_components'].join(" ") %>

<% end %>

<% end %>
<% end %>

clean <%= node['multi_repo']['mirrors']['ubuntu_mirror_source'] %>
Write out spaces between the components to mirror
Write out spaces between the components to mirror


Former-commit-id: b09e54a8b5a53df2fdf23a04b63a1cb874b93aba [formerly 4ba586d1989d4b0627aeeb163ddb1f2e63c3f612] [formerly cd808184131849faa26fdc1c2f2e1e982cba9d21 [formerly f4d8c29afe7d47df9f2181e856bb6a049136609d [formerly 0af22aef0a32f7d4238d6ad9ca42f918074efa14]]]
Former-commit-id: b43dab75518f3bed4f4063f5b1bb7830369e1def [formerly 419fee8786b60b8d1a1546eadd70f1700b1d0cac]
Former-commit-id: e7700e2f519657a12baca6d9db8778ca498ee22d
Former-commit-id: 361581c91467c8bff21cf34cadaf20dd7ad6e4dd