From bc7e8060d34b205de65bd6d820284523ac9f4c4e Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 27 Mar 2017 12:55:31 -0400 Subject: [PATCH] LU-9168 spec: New lustre-resource-agents rpm This rpm bundles up all resource agents for Lustre into a single RPM. Signed-off-by: Nathaniel Clark Change-Id: Ifc4422f11e9d6b4c1e03ef85fc78e35d6fcb0316 Reviewed-on: https://review.whamcloud.com/26229 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Zhiqi Tao Reviewed-by: Gabriele Paciucci Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- lustre.spec.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lustre.spec.in b/lustre.spec.in index 4b0ff18..979fe56 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -167,6 +167,18 @@ ZFS hooks for mount/mkfs into a dynamic library. %endif # with lustre_modules +%if %{with servers} +%package resource-agents +Summary: HA Resuable Cluster Resource Scripts for Lustre +Group: System Environment/Base +Requires: lustre +Requires: resource-agents + +%description resource-agents +A set of scripts to operate Lustre resources in a High Availablity +environment for both Pacemaker and rgmanager. +%endif + %package tests Summary: Lustre testing framework Group: Development/Kernel @@ -318,6 +330,11 @@ echo '%{_sysconfdir}/init.d/lnet' >>lustre.files echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files %endif +%if %{with servers} +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ +install -m 0755 contrib/scripts/pacemaker/* $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ +%endif + # fc18 needs 'x' permission for library files find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \; @@ -416,6 +433,12 @@ echo '%{_sbindir}/wiretest' >>lustre-tests.files %endif # with lustre_modules +%if %{with servers} +%files resource-agents +%defattr(0755,root,root) +%{_prefix}/lib/ocf/resource.d/lustre/ +%endif + %if %{with lustre_tests} %files tests -f lustre-tests.files %defattr(-,root,root) -- 1.8.3.1