]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Adds the ability to opt-out of enabling epel in the common role. 30/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 15 May 2015 14:16:43 +0000 (09:16 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 19 May 2015 20:15:28 +0000 (15:15 -0500)
Some of our labs should not be using epel.  This allows us to use
the enable_epel var to opt-out out of that per-lab by using the -secrets
repos.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/defaults/main.yml

index 9ea3240564213f710c5e44318f4d313d2a58d746..45db8ee5b8a35580e88e65a38d04ca753435ceed 100644 (file)
@@ -12,10 +12,13 @@ epel_repos:
   epel:
     name: "Extra Packages for Enterprise Linux"
     baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/$basearch"
-    enabled: 1
+    # ternary requires ansible >= 1.9
+    enabled: "{{ enable_epel | ternary(1, 0) }}"
     gpgcheck: 0
   epel-testing:
     name: "Extra Packages for Enterprise Linux - Testing"
     baseurl: "{{ epel_mirror_baseurl }}/testing/{{ ansible_distribution_major_version }}/$basearch"
     enabled: 0
     gpgcheck: 0
+
+enable_epel: true