[openstack-packstack/f21] Add enable-epel.patch
Ivan Chavero
ichavero at fedoraproject.org
Thu Oct 16 22:33:45 UTC 2014
commit f6d1f045fa2543ae739330d70c2c38d3567e0bc6
Author: Gael Chamoulaud <gchamoul at redhat.com>
Date: Thu Sep 18 21:02:14 2014 +0200
Add enable-epel.patch
Conflicts:
openstack-packstack.spec
enable-epel.patch | 18 ++++++++++++++++++
openstack-packstack.spec | 10 +++++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/enable-epel.patch b/enable-epel.patch
new file mode 100644
index 0000000..d1f4c5e
--- /dev/null
+++ b/enable-epel.patch
@@ -0,0 +1,18 @@
+RDO requires EPEL, so enable that.
+
+Also install the RDO release rpm, so that it's present on all hosts,
+not just the host that packstack was initiated on.
+
+diff --git a/packstack/plugins/serverprep_001.py b/packstack/plugins/serverprep_001.py
+index f4018a7..bbf9570 100644
+--- a/packstack/plugins/serverprep_001.py
++++ b/packstack/plugins/serverprep_001.py
+@@ -32,7 +32,7 @@ def initConfig(controller):
+ "PROMPT": "To subscribe each server to EPEL enter \"y\"",
+ "OPTION_LIST": ["y", "n"],
+ "VALIDATORS": [validators.validate_options],
+- "DEFAULT_VALUE": "n",
++ "DEFAULT_VALUE": "y",
+ "MASK_INPUT": False,
+ "LOOSE_VALIDATION": True,
+ "CONF_NAME": "CONFIG_USE_EPEL",
diff --git a/openstack-packstack.spec b/openstack-packstack.spec
index bcc960f..1aff702 100644
--- a/openstack-packstack.spec
+++ b/openstack-packstack.spec
@@ -6,7 +6,7 @@
Name: openstack-packstack
Version: 2014.1.1
-Release: 0.29.dev%{git_revno}%{?dist}
+Release: 0.29.1.dev%{git_revno}%{?dist}
Summary: Openstack Install Utility
Group: Applications/System
@@ -15,6 +15,8 @@ URL: https://github.com/stackforge/packstack
# Tarball is created by bin/release.sh
Source0: http://mmagr.fedorapeople.org/downloads/packstack/packstack-%{version}dev%{git_revno}.tar.gz
+Patch0: enable-epel.patch
+
BuildArch: noarch
BuildRequires: python2-devel
@@ -63,6 +65,9 @@ This package contains documentation files for Packstack.
%prep
%setup -n packstack-%{version}dev%{git_revno}
+%if 0%{?rhel}
+%patch0 -p1
+%endif
# Sanitizing a lot of the files in the puppet modules
find packstack/puppet/modules \( -name .fixtures.yml -o -name .gemfile -o -name ".travis.yml" -o -name .rspec \) -exec rm {} +
@@ -136,6 +141,9 @@ install -p -D -m 644 docs/_build/man/*.1 %{buildroot}%{_mandir}/man1/
# changelog --------------------------------------------------------------------
%changelog
+* Thu Oct 16 2014 Iván Chavero <ichavero at redhat.com> - 2014.1.1-0.29.1.dev1251
+- Add enable-epel.patch only for RHEL
+
* Mon Sep 15 2014 Martin Mágr <mmagr at redhat.com> - 2014.1.1-0.29.dev1251
- [MariaDB] Deprecates MySQL parameters in favor of MariaDB (rhbz#1102486)
- [Swift] Missing validator (rhbz#1128303)
More information about the scm-commits
mailing list