From 6db227d7c94f92b35bda6ff0cbec6abb15059dea Mon Sep 17 00:00:00 2001 From: zhipengl Date: Thu, 1 Nov 2018 23:58:29 +0800 Subject: [PATCH] Refactor patches for haproxy package. Use haproxy-config package to package script and service file for haproxy package. Create patches sub-folder and move patches file from haproxy/haproxy folder to this sub-folder. Refactor haproxy-service-file.patch & haproxy-spec-add-init-script.patch as we use haproxy-config to package related files. Merged meta_add_support_for_tpm.patch & spec-add-haproxy-env-var-patch.patch to spec-include-TiS-changes.patch (renamed from spec-include-TiS-config.patch) as they just includes adding source code patches. Deployment test and ping test between VMs pass config and script files check pass. Story: 2003768 Task: 27584 Depends-on: https://review.openstack.org/#/c/614709/ Change-Id: I08fd8aa662533f4ce379f352ba9bab7616c905f5 Signed-off-by: zhipengl --- base/haproxy-config/centos/build_srpm.data | 2 + .../haproxy-config/centos/haproxy-config.spec | 41 +++++++++++++ .../haproxy => haproxy-config/files}/503.http | 0 base/haproxy-config/files/haproxy.service | 13 +++++ .../files}/haproxy.sh | 0 base/haproxy/centos/build_srpm.data | 4 +- ...te-package-versioning-for-TIS-format.patch | 7 +-- base/haproxy/centos/meta_patches/PATCH_ORDER | 6 +- .../meta_patches/haproxy-service-file.patch | 26 --------- .../haproxy-spec-add-init-script.patch | 47 --------------- .../meta_add_support_for_tpm.patch | 42 -------------- .../meta_remove_bad_logrotate.patch | 15 ++--- .../spec-add-haproxy-env-var-patch.patch | 32 ---------- .../spec-include-TiS-changes.patch | 53 +++++++++++++++++ .../spec-include-TiS-config.patch | 58 ------------------- .../patches}/haproxy-env-var.patch | 0 .../patches}/haproxy-tpm-support.patch | 0 base/haproxy/{haproxy => files}/haproxy.cfg | 0 centos_iso_image.inc | 1 + centos_pkg_dirs | 1 + 20 files changed, 125 insertions(+), 223 deletions(-) create mode 100644 base/haproxy-config/centos/build_srpm.data create mode 100644 base/haproxy-config/centos/haproxy-config.spec rename base/{haproxy/haproxy => haproxy-config/files}/503.http (100%) create mode 100644 base/haproxy-config/files/haproxy.service rename base/{haproxy/haproxy => haproxy-config/files}/haproxy.sh (100%) mode change 100755 => 100644 delete mode 100644 base/haproxy/centos/meta_patches/haproxy-service-file.patch delete mode 100644 base/haproxy/centos/meta_patches/haproxy-spec-add-init-script.patch delete mode 100644 base/haproxy/centos/meta_patches/meta_add_support_for_tpm.patch delete mode 100644 base/haproxy/centos/meta_patches/spec-add-haproxy-env-var-patch.patch create mode 100644 base/haproxy/centos/meta_patches/spec-include-TiS-changes.patch delete mode 100644 base/haproxy/centos/meta_patches/spec-include-TiS-config.patch rename base/haproxy/{haproxy => centos/patches}/haproxy-env-var.patch (100%) rename base/haproxy/{haproxy => centos/patches}/haproxy-tpm-support.patch (100%) rename base/haproxy/{haproxy => files}/haproxy.cfg (100%) mode change 100755 => 100644 diff --git a/base/haproxy-config/centos/build_srpm.data b/base/haproxy-config/centos/build_srpm.data new file mode 100644 index 000000000..2c3b2cb8b --- /dev/null +++ b/base/haproxy-config/centos/build_srpm.data @@ -0,0 +1,2 @@ +SRC_DIR="files" +TIS_PATCH_VER=1 diff --git a/base/haproxy-config/centos/haproxy-config.spec b/base/haproxy-config/centos/haproxy-config.spec new file mode 100644 index 000000000..679393aec --- /dev/null +++ b/base/haproxy-config/centos/haproxy-config.spec @@ -0,0 +1,41 @@ +Summary: haproxy-config +Name: haproxy-config +Version: 1.0 +Release: %{tis_patch_ver}%{?_tis_dist} +License: Apache-2.0 +Group: base +Packager: StarlingX +URL: unknown +BuildArch: noarch +Source: %name-%version.tar.gz + +Requires: haproxy +Summary: package StarlingX configuration files of haproxy to system folder. + +%description +package StarlingX configuration files of haproxy to system folder. + +%prep +%setup + +%build + +%install +%{__install} -d 755 %{buildroot}%{_sysconfdir}/haproxy/errors/ +%{__install} -m 755 503.http %{buildroot}%{_sysconfdir}/haproxy/errors/503.http + +%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system +%{__install} -m 644 haproxy.service %{buildroot}%{_sysconfdir}/systemd/system + +mkdir -p %{_sysconfdir}/init.d +%{__install} -p -D -m 0755 haproxy.sh %{buildroot}%{_sysconfdir}/init.d/haproxy + +%post +/bin/systemctl disable haproxy.service + +%files +%defattr(-,root,root,-) +%dir %{_sysconfdir}/haproxy/errors/ +%{_sysconfdir}/haproxy/errors/* +%{_sysconfdir}/init.d/haproxy +%{_sysconfdir}/systemd/system/haproxy.service diff --git a/base/haproxy/haproxy/503.http b/base/haproxy-config/files/503.http similarity index 100% rename from base/haproxy/haproxy/503.http rename to base/haproxy-config/files/503.http diff --git a/base/haproxy-config/files/haproxy.service b/base/haproxy-config/files/haproxy.service new file mode 100644 index 000000000..c2f10863c --- /dev/null +++ b/base/haproxy-config/files/haproxy.service @@ -0,0 +1,13 @@ +[Unit] +Description=HAProxy Load Balancer +After=syslog.target network.target + +[Service] +EnvironmentFile=/etc/sysconfig/haproxy +ExecStart=/etc/init.d/haproxy start +ExecStop=/etc/init.d/haproxy stop +ExecReload=/bin/kill -USR2 $MAINPID +KillMode=mixed + +[Install] +WantedBy=multi-user.target diff --git a/base/haproxy/haproxy/haproxy.sh b/base/haproxy-config/files/haproxy.sh old mode 100755 new mode 100644 similarity index 100% rename from base/haproxy/haproxy/haproxy.sh rename to base/haproxy-config/files/haproxy.sh diff --git a/base/haproxy/centos/build_srpm.data b/base/haproxy/centos/build_srpm.data index b768bf6c3..c686ecdae 100644 --- a/base/haproxy/centos/build_srpm.data +++ b/base/haproxy/centos/build_srpm.data @@ -1,2 +1,2 @@ -COPY_LIST="haproxy/*" -TIS_PATCH_VER=7 +SRC_DIR="files" +TIS_PATCH_VER=8 diff --git a/base/haproxy/centos/meta_patches/0001-Update-package-versioning-for-TIS-format.patch b/base/haproxy/centos/meta_patches/0001-Update-package-versioning-for-TIS-format.patch index 33eec60c0..98adeacbb 100644 --- a/base/haproxy/centos/meta_patches/0001-Update-package-versioning-for-TIS-format.patch +++ b/base/haproxy/centos/meta_patches/0001-Update-package-versioning-for-TIS-format.patch @@ -3,14 +3,13 @@ From: Scott Little Date: Mon, 2 Oct 2017 16:12:36 -0400 Subject: [PATCH] WRS: 0001-Update-package-versioning-for-TIS-format.patch -Conflicts: - SPECS/haproxy.spec +Signed-off-by: zhipengl --- SPECS/haproxy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index 0d6e19a..3bc75e1 100644 +index 39c0c86..b0d5862 100644 --- a/SPECS/haproxy.spec +++ b/SPECS/haproxy.spec @@ -8,7 +8,7 @@ @@ -23,5 +22,5 @@ index 0d6e19a..3bc75e1 100644 Group: System Environment/Daemons -- -2.7.4 +1.8.3.1 diff --git a/base/haproxy/centos/meta_patches/PATCH_ORDER b/base/haproxy/centos/meta_patches/PATCH_ORDER index 87bd6af57..3f3977f65 100644 --- a/base/haproxy/centos/meta_patches/PATCH_ORDER +++ b/base/haproxy/centos/meta_patches/PATCH_ORDER @@ -1,7 +1,3 @@ -spec-include-TiS-config.patch -haproxy-spec-add-init-script.patch -spec-add-haproxy-env-var-patch.patch +spec-include-TiS-changes.patch meta_remove_bad_logrotate.patch -haproxy-service-file.patch -meta_add_support_for_tpm.patch 0001-Update-package-versioning-for-TIS-format.patch diff --git a/base/haproxy/centos/meta_patches/haproxy-service-file.patch b/base/haproxy/centos/meta_patches/haproxy-service-file.patch deleted file mode 100644 index 179b7d55f..000000000 --- a/base/haproxy/centos/meta_patches/haproxy-service-file.patch +++ /dev/null @@ -1,26 +0,0 @@ -From c4d74c67ee001af849e7a30e824cc0f8e38ef948 Mon Sep 17 00:00:00 2001 -From: Scott Little -Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: [PATCH 5/7] WRS: haproxy-service-file.patch - ---- - SOURCES/haproxy.service | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/SOURCES/haproxy.service b/SOURCES/haproxy.service -index 2d4c954..c2f1086 100644 ---- a/SOURCES/haproxy.service -+++ b/SOURCES/haproxy.service -@@ -4,7 +4,8 @@ After=syslog.target network.target - - [Service] - EnvironmentFile=/etc/sysconfig/haproxy --ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS -+ExecStart=/etc/init.d/haproxy start -+ExecStop=/etc/init.d/haproxy stop - ExecReload=/bin/kill -USR2 $MAINPID - KillMode=mixed - --- -1.9.1 - diff --git a/base/haproxy/centos/meta_patches/haproxy-spec-add-init-script.patch b/base/haproxy/centos/meta_patches/haproxy-spec-add-init-script.patch deleted file mode 100644 index d38a4fc3e..000000000 --- a/base/haproxy/centos/meta_patches/haproxy-spec-add-init-script.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 959767df3285a81f1c5650018ed846fe90a68c9d Mon Sep 17 00:00:00 2001 -From: Scott Little -Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: [PATCH 2/7] WRS: haproxy-spec-add-init-script.patch - ---- - SPECS/haproxy.spec | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index 42ddeb0..cbd9161 100644 ---- a/SPECS/haproxy.spec -+++ b/SPECS/haproxy.spec -@@ -21,6 +21,7 @@ Source2: %{name}.cfg - Source3: %{name}.logrotate - Source4: %{name}.sysconfig - Source5: halog.1 -+Source10: %{name}.sh - - # WRS - Source6: 503.http -@@ -81,11 +82,14 @@ popd - %{__make} install-bin DESTDIR=%{buildroot} PREFIX=%{_prefix} TARGET="linux2628" - %{__make} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix} - -+mkdir -p /etc/init.d -+ - %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service - %{__install} -p -D -m 0640 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg - %{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} - %{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name} - %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1 -+%{__install} -p -D -m 0755 %{SOURCE10} %{buildroot}/etc/init.d/%{name} - %{__install} -d -m 0755 %{buildroot}%{haproxy_home} - %{__install} -d -m 0755 %{buildroot}%{haproxy_datadir} - %{__install} -d -m 0755 %{buildroot}%{_bindir} -@@ -149,6 +153,7 @@ fi - %{_bindir}/halog - %{_bindir}/iprange - %{_mandir}/man1/* -+/etc/init.d/%{name} - %attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home} - - # WRS --- -1.9.1 - diff --git a/base/haproxy/centos/meta_patches/meta_add_support_for_tpm.patch b/base/haproxy/centos/meta_patches/meta_add_support_for_tpm.patch deleted file mode 100644 index a87dd87ca..000000000 --- a/base/haproxy/centos/meta_patches/meta_add_support_for_tpm.patch +++ /dev/null @@ -1,42 +0,0 @@ -From a5329bf1468f55c8d6b983e5999c12139dc7479d Mon Sep 17 00:00:00 2001 -From: Scott Little -Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: [PATCH 6/7] WRS: meta_add_support_for_tpm.patch - ---- - SPECS/haproxy.spec | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index 3d112e0..c1547ef 100644 ---- a/SPECS/haproxy.spec -+++ b/SPECS/haproxy.spec -@@ -30,6 +30,7 @@ Patch1: iprange-return-type.patch - Patch2: haproxy-tcp-user-timeout.patch - Patch3: haproxy-systemd-wrapper-exit-code.patch - Patch4: haproxy-env-var.patch -+Patch5: haproxy-tpm-support.patch - - BuildRequires: pcre-devel - BuildRequires: zlib-devel -@@ -41,6 +42,9 @@ Requires(post): systemd - Requires(preun): systemd - Requires(postun): systemd - -+Requires: tpm2-openssl-engine -+ -+ - %description - HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high - availability environments. Indeed, it can: -@@ -62,6 +66,7 @@ availability environments. Indeed, it can: - %patch2 -p1 - %patch3 -p1 - %patch4 -p1 -+%patch5 -p1 - - %build - regparm_opts= --- -1.9.1 - diff --git a/base/haproxy/centos/meta_patches/meta_remove_bad_logrotate.patch b/base/haproxy/centos/meta_patches/meta_remove_bad_logrotate.patch index f99a42395..6ec309080 100644 --- a/base/haproxy/centos/meta_patches/meta_remove_bad_logrotate.patch +++ b/base/haproxy/centos/meta_patches/meta_remove_bad_logrotate.patch @@ -1,14 +1,15 @@ From 3eac39ba534b92dbcb3a898442b09be7acc389bb Mon Sep 17 00:00:00 2001 From: Scott Little Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: [PATCH 4/7] WRS: meta_remove_bad_logrotate.patch +Subject: [PATCH] WRS: meta_remove_bad_logrotate.patch +Signed-off-by: zhipengl --- SPECS/haproxy.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index af94d46..3d112e0 100644 +index 53def97..39c0c86 100644 --- a/SPECS/haproxy.spec +++ b/SPECS/haproxy.spec @@ -18,7 +18,6 @@ URL: http://www.haproxy.org/ @@ -18,16 +19,16 @@ index af94d46..3d112e0 100644 -Source3: %{name}.logrotate Source4: %{name}.sysconfig Source5: halog.1 - Source10: %{name}.sh -@@ -88,7 +87,6 @@ mkdir -p /etc/init.d + +@@ -86,7 +85,6 @@ popd %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service %{__install} -p -D -m 0640 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg -%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1 - %{__install} -p -D -m 0755 %{SOURCE10} %{buildroot}/etc/init.d/%{name} -@@ -147,7 +145,6 @@ fi + %{__install} -d -m 0755 %{buildroot}%{haproxy_home} +@@ -139,7 +137,6 @@ fi %dir %{haproxy_datadir} %{haproxy_datadir}/* %config(noreplace) %{haproxy_confdir}/%{name}.cfg @@ -36,5 +37,5 @@ index af94d46..3d112e0 100644 %{_unitdir}/%{name}.service %{_sbindir}/%{name} -- -1.9.1 +1.8.3.1 diff --git a/base/haproxy/centos/meta_patches/spec-add-haproxy-env-var-patch.patch b/base/haproxy/centos/meta_patches/spec-add-haproxy-env-var-patch.patch deleted file mode 100644 index 95eb17e44..000000000 --- a/base/haproxy/centos/meta_patches/spec-add-haproxy-env-var-patch.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 2e37207c026047e2ce1bc9a5278faddfea81c011 Mon Sep 17 00:00:00 2001 -From: Scott Little -Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: [PATCH 3/7] WRS: spec-add-haproxy-env-var-patch.patch - ---- - SPECS/haproxy.spec | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index cbd9161..af94d46 100644 ---- a/SPECS/haproxy.spec -+++ b/SPECS/haproxy.spec -@@ -30,6 +30,7 @@ Patch0: halog-unused-variables.patch - Patch1: iprange-return-type.patch - Patch2: haproxy-tcp-user-timeout.patch - Patch3: haproxy-systemd-wrapper-exit-code.patch -+Patch4: haproxy-env-var.patch - - BuildRequires: pcre-devel - BuildRequires: zlib-devel -@@ -61,6 +62,7 @@ availability environments. Indeed, it can: - %patch1 -p0 - %patch2 -p1 - %patch3 -p1 -+%patch4 -p1 - - %build - regparm_opts= --- -1.9.1 - diff --git a/base/haproxy/centos/meta_patches/spec-include-TiS-changes.patch b/base/haproxy/centos/meta_patches/spec-include-TiS-changes.patch new file mode 100644 index 000000000..53c01538f --- /dev/null +++ b/base/haproxy/centos/meta_patches/spec-include-TiS-changes.patch @@ -0,0 +1,53 @@ +From 0b326ac9fcee3fbac7e41e3bc269cc7251dcf9dd Mon Sep 17 00:00:00 2001 +From: Scott Little +Date: Mon, 2 Oct 2017 16:12:36 -0400 +Subject: WRS: spec-include-TiS-changes.patch + +Signed-off-by: zhipengl +--- + SPECS/haproxy.spec | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec +index 30dca25..53def97 100644 +--- a/SPECS/haproxy.spec ++++ b/SPECS/haproxy.spec +@@ -26,6 +26,8 @@ Patch0: halog-unused-variables.patch + Patch1: iprange-return-type.patch + Patch2: haproxy-tcp-user-timeout.patch + Patch3: haproxy-systemd-wrapper-exit-code.patch ++Patch4: haproxy-env-var.patch ++Patch5: haproxy-tpm-support.patch + + BuildRequires: pcre-devel + BuildRequires: zlib-devel +@@ -37,6 +39,8 @@ Requires(post): systemd + Requires(preun): systemd + Requires(postun): systemd + ++Requires: tpm2-openssl-engine ++ + %description + HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high + availability environments. Indeed, it can: +@@ -57,6 +61,8 @@ availability environments. Indeed, it can: + %patch1 -p0 + %patch2 -p1 + %patch3 -p1 ++%patch4 -p1 ++%patch5 -p1 + + %build + regparm_opts= +@@ -79,7 +85,7 @@ popd + %{__make} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix} + + %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service +-%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg ++%{__install} -p -D -m 0640 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg + %{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} + %{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name} + %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1 +-- +1.8.3.1 + diff --git a/base/haproxy/centos/meta_patches/spec-include-TiS-config.patch b/base/haproxy/centos/meta_patches/spec-include-TiS-config.patch deleted file mode 100644 index b796d1ee7..000000000 --- a/base/haproxy/centos/meta_patches/spec-include-TiS-config.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 0b326ac9fcee3fbac7e41e3bc269cc7251dcf9dd Mon Sep 17 00:00:00 2001 -From: Scott Little -Date: Mon, 2 Oct 2017 16:12:36 -0400 -Subject: WRS: spec-include-TiS-config.patch - ---- - SPECS/haproxy.spec | 14 +++++++++++++- - 1 file changed, 13 insertions(+), 1 deletion(-) - -diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec -index 30dca25..988e7cf 100644 ---- a/SPECS/haproxy.spec -+++ b/SPECS/haproxy.spec -@@ -22,6 +22,9 @@ Source3: %{name}.logrotate - Source4: %{name}.sysconfig - Source5: halog.1 - -+# WRS -+Source6: 503.http -+ - Patch0: halog-unused-variables.patch - Patch1: iprange-return-type.patch - Patch2: haproxy-tcp-user-timeout.patch -@@ -79,7 +82,7 @@ popd - %{__make} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix} - - %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service --%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg -+%{__install} -p -D -m 0640 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg - %{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} - %{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name} - %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1 -@@ -106,6 +109,11 @@ do - %{__rm} -f $textfile.old - done - -+# WRS -+%{__install} -d 755 %{buildroot}/etc/haproxy/errors/ -+%{__install} -m 755 %{SOURCE6} %{buildroot}/etc/haproxy/errors/503.http -+ -+ - %pre - getent group %{haproxy_group} >/dev/null || groupadd -f -g 188 -r %{haproxy_group} - if ! getent passwd %{haproxy_user} >/dev/null ; then -@@ -143,6 +151,10 @@ fi - %{_mandir}/man1/* - %attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home} - -+# WRS -+%dir /etc/haproxy/errors/ -+/etc/haproxy/errors/* -+ - %changelog - * Thu Nov 30 2017 Ryan O'Hara - 1.5.18-7 - - Rebuild with openssl-1.0.2k (#1509139) --- -2.7.4 - diff --git a/base/haproxy/haproxy/haproxy-env-var.patch b/base/haproxy/centos/patches/haproxy-env-var.patch similarity index 100% rename from base/haproxy/haproxy/haproxy-env-var.patch rename to base/haproxy/centos/patches/haproxy-env-var.patch diff --git a/base/haproxy/haproxy/haproxy-tpm-support.patch b/base/haproxy/centos/patches/haproxy-tpm-support.patch similarity index 100% rename from base/haproxy/haproxy/haproxy-tpm-support.patch rename to base/haproxy/centos/patches/haproxy-tpm-support.patch diff --git a/base/haproxy/haproxy/haproxy.cfg b/base/haproxy/files/haproxy.cfg old mode 100755 new mode 100644 similarity index 100% rename from base/haproxy/haproxy/haproxy.cfg rename to base/haproxy/files/haproxy.cfg diff --git a/centos_iso_image.inc b/centos_iso_image.inc index 2bea31703..1065a3119 100644 --- a/centos_iso_image.inc +++ b/centos_iso_image.inc @@ -296,6 +296,7 @@ bash # haproxy haproxy +haproxy-config # iscsi-initiator-utils iscsi-initiator-utils diff --git a/centos_pkg_dirs b/centos_pkg_dirs index 463e86362..80bbdb537 100644 --- a/centos_pkg_dirs +++ b/centos_pkg_dirs @@ -127,6 +127,7 @@ base/cluster-resource-agents base/libfdt base/bash base/haproxy +base/haproxy-config filesystem/iscsi-initiator-utils ldap/ldapscripts networking/net-tools