############# 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
