diskimage-builder/diskimage_builder/elements/epel
Ian Wienand a00d02f6a1 Remove centos and rhel elements
Several people have popped up in IRC recently with failures in these
elements.  Without Python 2.7 available in the image they are
unsupported (OpenStack hasn't supported it for a long time).  Remove
these to avoid further confusion.

The centos/centos7 DISTRO split that has happened with centos-minimal
is unfortunate but I don't think it helps to rename centos7/rhel7 ATM.
To summarise; DISTRO=centos7 means image based build,
DISTRO=centos && DIB_RELEASE=7 means the minimal build.

In the future, I think it is important that the minimal builds and
image builds set the same DISTRO.  This reflects that "upper" layers
shouldn't care about the exact building of the lower layers.  I see
CentOS 8 going one of two ways

1) the changes are so significant, we start separate centos8 /
centos8-minimal elements.  They both set DISTRO=centos8 (and
DIB_RELEASE to point-release maybe?).  This means we have to update
all "if DISTRO == centos || DISTRO == centos7" branches to also check
for "centos8".  Evenually (!)  "centos" goes away for versioned DISTRO
only

2) we restore centos element with DISTRO=centos and DIB_RELEASE=8, and
centos-minimal remains the same.  This means we have to audit all "if
DISTRO == centos" calls to make sure they're appropriate for version 8
(stick a "&& DIB_RELEASE=7" on them all basically).

I'm not sure we can fully decide until we start to see excatly how the
distro switching/matching bits look, but (2) is consistent with Ubuntu
and probably the preferred solution.

Some "rhel" parts have been cleaned up.  More could be done in
rhel-common, but given our lack of coverage of that I'd prefer to
leave it for now.

Change-Id: I6ea784116ef59ca22878c8512c963f29c815a00a
2017-06-28 12:26:24 +10:00
..
pre-install.d Remove centos and rhel elements 2017-06-28 12:26:24 +10:00
element-deps Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
package-installs.yaml Add yum-utils as EPEL dependency 2017-04-20 17:01:00 -04:00
README.rst Add flag to disable EPEL 2017-04-05 05:59:40 +10:00

====
epel
====

This element installs the Extra Packages for Enterprise Linux (EPEL)
repository GPG key as well as configuration for yum.

Note this element only works with platforms that have EPEL support
such as CentOS and RHEL

DIB_EPEL_MIRROR:
   :Required: No
   :Default: None
   :Description: To use a EPEL Yum mirror, set this variable to the mirror URL
                 before running bin/disk-image-create. This URL should point to
                 the directory containing the ``5/6/7`` directories.
   :Example: ``DIB\_EPEL\_MIRROR=http://dl.fedoraproject.org/pub/epel``

DIB_EPEL_DISABLED:
   :Required: No
   :Default: 0
   :Description: To disable the EPEL repo (but leave it available if
                 used with an explicit ``--enablerepo``) set this to 1