yum_repo.j2 580 B

1234567891011121314
  1. {% for repo in openshift_additional_repos %}
  2. [{{ repo.id }}]
  3. name={{ repo.name | default(repo.id) }}
  4. baseurl={{ repo.baseurl }}
  5. {% set enable_repo = repo.enabled | default('1') %}
  6. enabled={{ 1 if ( enable_repo == 1 or enable_repo == True ) else 0 }}
  7. {% set enable_gpg_check = repo.gpgcheck | default('1') %}
  8. gpgcheck={{ 1 if ( enable_gpg_check == 1 or enable_gpg_check == True ) else 0 }}
  9. {% for key, value in repo.iteritems() %}
  10. {% if key not in ['id', 'name', 'baseurl', 'enabled', 'gpgcheck'] and value is defined %}
  11. {{ key }}={{ value }}
  12. {% endif %}
  13. {% endfor %}
  14. {% endfor %}