{% if has_repo_cost is defined %}
{% set repo_base = distro_tree.url_in_lab(lab_controller, scheme=['http', 'ftp']) %}
{% if repo_base %}
{% for repo in distro_tree.repos %}
{% if var('no_%s_repos' % repo.repo_type) is undefined
    and var('disable_%s_repos' % repo.repo_type) is undefined
    and var('no_repo_%s' % repo.repo_id) is undefined
    and var('disable_repo_%s' % repo.repo_id) is undefined %}
repo --name=beaker-{{ repo.repo_id }} --cost=100 --baseurl={{ repo_base|urljoin(repo.path) }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if customrepos %}
{% for repo in customrepos %}
{% if '$' in repo.path %}
# skipping {{ repo.repo_id }},{{ repo.path }} which contains a yum variable
{% else %}
{% if has_repo_cost is defined %}
repo --name={{repo.repo_id }} --cost=100 --baseurl={{ repo.path }}
{% else %}
repo --name={{repo.repo_id }} --baseurl={{ repo.path }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
