%set %%_eole_release = %%getVar('_eole_release', %%eole_release)
%set %%_eole_version = %%getVar('_eole_version', %%eole_version)

%if %%_mirror_ubuntu is not None
# Ubuntu
deb [ arch=amd64 ] %%_mirror_ubuntu %%{ubuntu_version} main universe multiverse restricted
deb [ arch=amd64 ] %%_mirror_ubuntu %%{ubuntu_version}-security main universe multiverse restricted
deb [ arch=amd64 ] %%_mirror_ubuntu %%{ubuntu_version}-updates main universe multiverse restricted
%end if

%if %%_mirror_eole is not None
# EOLE
  %if %%_eole_level in ['stable', 'proposed']
deb [ arch=amd64 ] %%_mirror_eole eole-%%{_eole_release} main cloud
deb [ arch=amd64 ] %%_mirror_eole eole-%%{_eole_release}-security main cloud
deb [ arch=amd64 ] %%_mirror_eole eole-%%{_eole_release}-updates main cloud
    %if %%_eole_level == 'proposed'
deb [ arch=amd64 ] %%_mirror_eole eole-%%{_eole_release}-proposed-updates main cloud
    %end if
  %else
deb [ arch=amd64 ] %%_mirror_eole eole-%%{_eole_version}-unstable main cloud
  %end if
%end if

%if %%getVar('_mirror_envole', None) is not None and %%getVar('envole_version', None) is not None
# Envole
  %if %%_envole_level in ['stable', 'proposed']
deb [ arch=amd64 ] %%_mirror_envole envole-%%{envole_version} main
    %if %%_envole_level == 'proposed'
deb [ arch=amd64 ] %%_mirror_envole envole-%%{envole_version}-testing main
    %end if
  %else
deb [ arch=amd64 ] %%_mirror_envole envole-%%{envole_version}-unstable main
  %end if
%end if
