summaryrefslogtreecommitdiffstats
path: root/roles/openshift_repos/templates
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-03-18 17:15:19 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-03-18 17:23:59 -0400
commit8613b70503d2d1cbe57ddebc11919edeb26eaadc (patch)
tree92a6a85e4b8e670ace8c6b518d93807059ddd285 /roles/openshift_repos/templates
parentdb9cf8ef4f030f30391e021f360fe0c3db1dce74 (diff)
downloadopenshift-8613b70503d2d1cbe57ddebc11919edeb26eaadc.tar.gz
openshift-8613b70503d2d1cbe57ddebc11919edeb26eaadc.tar.bz2
openshift-8613b70503d2d1cbe57ddebc11919edeb26eaadc.tar.xz
openshift-8613b70503d2d1cbe57ddebc11919edeb26eaadc.zip
Rename repos role to openshift_repos
- Rename repos role to openshift_repos - Make openshift_repos a dependency of openshift_common - Add README and metadata for openshift_repos - Playbook updates for role rename - Verify libselinux-python is installed, otherwise some of the bulit-in modules we use fail
Diffstat (limited to 'roles/openshift_repos/templates')
-rw-r--r--roles/openshift_repos/templates/yum_repo.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/openshift_repos/templates/yum_repo.j2 b/roles/openshift_repos/templates/yum_repo.j2
new file mode 100644
index 000000000..7ea2c7460
--- /dev/null
+++ b/roles/openshift_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 %}