diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-02-20 23:52:21 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-02-22 00:33:07 -0500 |
commit | 12ec90897f890e1f5ee417d9f6f56baa359f0313 (patch) | |
tree | 8725c92f07518fcacc4f1a0ab60e19070c9f9484 /roles/repos/templates | |
parent | 8e299557333c7d35368d12a030344e676bbed831 (diff) | |
download | openshift-12ec90897f890e1f5ee417d9f6f56baa359f0313.tar.gz openshift-12ec90897f890e1f5ee417d9f6f56baa359f0313.tar.bz2 openshift-12ec90897f890e1f5ee417d9f6f56baa359f0313.tar.xz openshift-12ec90897f890e1f5ee417d9f6f56baa359f0313.zip |
Repo role refactor to add enterprise support
- Add openshift_additional_repos config that allows for setting custom repos
- cleanup yum repos that were configured for other deployment types
Diffstat (limited to 'roles/repos/templates')
-rw-r--r-- | roles/repos/templates/yum_repo.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/repos/templates/yum_repo.j2 b/roles/repos/templates/yum_repo.j2 new file mode 100644 index 000000000..7ea2c7460 --- /dev/null +++ b/roles/repos/templates/yum_repo.j2 @@ -0,0 +1,15 @@ +# {{ ansible_managed }} +{% for repo in openshift_additional_repos %} +[{{ repo.id }}] +name={{ repo.name | default(repo.id) }} +baseurl={{ repo.baseurl }} +{% set enable_repo = repo.enabled | default('1') %} +enabled={{ 1 if ( enable_repo == 1 or enable_repo == True ) else 0 }} +{% set enable_gpg_check = repo.gpgcheck | default('1') %} +gpgcheck={{ 1 if ( enable_gpg_check == 1 or enable_gpg_check == True ) else 0 }} +{% for key, value in repo.iteritems() %} +{% if key not in ['id', 'name', 'baseurl', 'enabled', 'gpgcheck'] and value is defined %} +{{ key }}={{ value }} +{% endif %} +{% endfor %} +{% endfor %} |