171 lines
7.0 KiB
RPMSpec
171 lines
7.0 KiB
RPMSpec
Name: rhel-system-roles-sap
|
|
Summary: System Roles to configure RHEL for running SAP NetWeaver- or SAP HANA-based products
|
|
Version: 2.0.0
|
|
Release: 8%{?dist}
|
|
License: GPLv3+
|
|
Url: https://github.com/berndfinger
|
|
Source0: https://github.com/berndfinger/sap-preconfigure/releases/download/2.0.0/sap-preconfigure.tar.gz
|
|
Source1: https://github.com/berndfinger/sap-hana-preconfigure/releases/download/2.0.0/sap-hana-preconfigure.tar.gz
|
|
Source2: https://github.com/berndfinger/sap-netweaver-preconfigure/releases/download/2.0.0/sap-netweaver-preconfigure.tar.gz
|
|
# git diff 2cbfd65fcc4988db4e9bc86bbf738217fe75bf49, fix 3 issues
|
|
# - firewalld installation state detection not working
|
|
# - File /etc/init.d/boot.local should have permissions of 0755 (configure-epb.yml)
|
|
# - ask disable-firewall.yml in 2009879_7.yml also needs single step execution support
|
|
# fixes for sap-hana-preconfigure
|
|
Patch0: sap-hana-preconfigure-2.0.0.patch
|
|
Patch1: sap-hana-preconfigure-#95-#96-c11288a8354bf14f665e2ec92ff6b49f6828edfc.patch
|
|
Patch2: sap-hana-preconfigure-#94-#97-ecb7c33e9a8eddb633189d332683309d398fd54f.patch
|
|
Patch3: sap-hana-preconfigure-#99-d64615413b0bd7741bd6d8e06e5676be36a24c41.patch
|
|
Patch4: sap-hana-preconfigure-#101-063273dd09715cfcf69bcf3c1f4347225028ba70.patch
|
|
Patch5: sap-hana-preconfigure-#102-a622092d5063c2fb0d7996775521a52549e3a65a.patch
|
|
Patch6: sap-hana-preconfigure-#104-#105-6d65f9b667a8a7dec17caa70c5df929b921691a6.patch
|
|
Patch7: sap-hana-preconfigure-#98-6a417012022f38534ae5a5803062639446c9fa81.patch
|
|
Patch8: sap-hana-preconfigure-#107-6f8d7c964e2c95b37c68299e6077bc3f987faffb.patch
|
|
Patch9: sap-hana-preconfigure-#109-#110-89202367321b47c3fb5d52e50f5ea220c548fab5.patch
|
|
Patch10: sap-hana-preconfigure-#111-part1-03affb58325bf1c370ea3e0d76e291eb9485acf1.patch
|
|
Patch11: sap-hana-preconfigure-#111-part2-6edb1339a1a79c9e47f8023534e0a3db429dbf20.patch
|
|
Patch12: sap-hana-preconfigure-#112-part1-d26152ada59c5e2919be3f7cf89927ac7bfd510d.patch
|
|
Patch13: sap-hana-preconfigure-#112-part2-d26152ada59c5e2919be3f7cf89927ac7bfd510d.patch
|
|
Patch14: sap-hana-preconfigure-#113-1442c5470eae0769a6ceee201621aab0518bb6f3.patch
|
|
Patch15: sap-hana-preconfigure-#114-f011979fa05e938165c95a134bbdcc37a33f4eea.patch
|
|
Patch16: sap-hana-preconfigure-#116-752f988bf105a325db12965d240bbe1462b72c78.patch
|
|
Patch17: sap-hana-preconfigure-#119-75a1940d0230c0fb2957426952c5308e08919c06.patch
|
|
|
|
# fixes for sap-preconfigure
|
|
Patch100: sap-preconfigure-#78-db645e39a38070ac0b3fe9f2f447d60e6eedac4a.patch
|
|
Patch101: sap-preconfigure-#79-b056297b1e54662773d9b63850fdae34d2606fa1.patch
|
|
Patch102: sap-preconfigure-#81-6be65f40569044307bbf41038b766ff571a08025.patch
|
|
Patch103: sap-preconfigure-#82-70cd0f9f8b0f7de3e48c1af041a0d63443445052.patch
|
|
Patch104: sap-preconfigure-#84-77e02082ae0784f88eab8f9d0f764c3981b9cf6d.patch
|
|
Patch105: sap-preconfigure-#85-#86-840cafb7487687369d3597e6f9e21895da702094.patch
|
|
Patch106: sap-preconfigure-#85-110d870eaac2efee2e131babacebc5337a15b3e3.patch
|
|
Patch107: sap-preconfigure-#88-7595b96fbd6a7360d62413734bc652ed4c5e2771.patch
|
|
Patch108: sap-preconfigure-#89-3f3c93eaddfafd08132017058b0b330108d2bd2c.patch
|
|
Patch109: sap-preconfigure-#92-db1ed07c66286edbee756ed3504649975d333306.patch
|
|
|
|
BuildArch: noarch
|
|
Requires: uuidd
|
|
|
|
%description
|
|
Collection of Ansible roles which configures a RHEL system according
|
|
to applicable SAP notes so that any SAP software can be installed.
|
|
|
|
%prep
|
|
%setup -q -T -c -n %{name}-%{version} -a 0 -a 1 -a 2
|
|
pushd sap-hana-preconfigure
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
%patch13 -p1
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -p1
|
|
popd
|
|
pushd sap-preconfigure
|
|
%patch100 -p1
|
|
%patch101 -p1
|
|
%patch102 -p1
|
|
%patch103 -p1
|
|
%patch104 -p1
|
|
%patch105 -p1
|
|
%patch106 -p1
|
|
%patch107 -p1
|
|
%patch108 -p1
|
|
%patch109 -p1
|
|
popd
|
|
|
|
# remove all SLES stuff
|
|
rm -rf sap-hana-preconfigure/tasks/SLES
|
|
rm -rf sap-hana-preconfigure/tasks/SLES15
|
|
rm -rf sap-hana-preconfigure/tasks/sapnote/1275776 # SLES - sapconf, saptune, etc
|
|
rm -rf sap-hana-preconfigure/tasks/sapnote/1944799* # SLES - HANA install and config guidelines
|
|
rm -rf sap-hana-preconfigure/tasks/sapnote/2578899 # SLES 15 - installation
|
|
rm -rf sap-hana-preconfigure/tasks/sapnote/2684254 # SLES 15 - OS settings for HANA
|
|
rm -f sap-hana-preconfigure/vars/SLES_15.yml
|
|
|
|
# remove all RHEL 6 stuff
|
|
rm -f sap-hana-preconfigure/tasks/sapnote/2013638.yml # RHEL 6.5 - OS settings
|
|
rm -f sap-hana-preconfigure/tasks/sapnote/2136965.yml # RHEL 6.6 - OS settings
|
|
rm -f sap-hana-preconfigure/tasks/sapnote/2247020.yml # RHEL 6.7 - OS settings
|
|
rm -f sap-hana-preconfigure/vars/RedHat_6.5.yml
|
|
rm -f sap-hana-preconfigure/vars/RedHat_6.6.yml
|
|
rm -f sap-hana-preconfigure/vars/RedHat_6.7.yml
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ansible/roles \
|
|
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-hana-preconfigure \
|
|
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-preconfigure \
|
|
$RPM_BUILD_ROOT%{_pkgdocdir}/sap-netweaver-preconfigure
|
|
|
|
# drop zero file
|
|
rm -f */.gitignore sap-hana-preconfigure/tasks/RedHat_6/recommendations.yml
|
|
|
|
cp -pR sap-hana-preconfigure sap-preconfigure sap-netweaver-preconfigure $RPM_BUILD_ROOT%{_datadir}/ansible/roles/
|
|
cp -p sap-hana-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-hana-preconfigure/
|
|
cp -p sap-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-preconfigure/
|
|
cp -p sap-netweaver-preconfigure/{README.md,LICENSE} $RPM_BUILD_ROOT%{_pkgdocdir}/sap-netweaver-preconfigure/
|
|
|
|
%files
|
|
%dir %{_pkgdocdir}
|
|
%dir %{_pkgdocdir}/sap-preconfigure
|
|
%dir %{_pkgdocdir}/sap-hana-preconfigure
|
|
%dir %{_pkgdocdir}/sap-netweaver-preconfigure
|
|
%dir %{_datadir}/ansible
|
|
%dir %{_datadir}/ansible/roles
|
|
%doc %{_pkgdocdir}/*/README.md
|
|
%license %{_pkgdocdir}/*/LICENSE
|
|
%{_datadir}/ansible/roles/*
|
|
|
|
%changelog
|
|
* Tue Jan 12 2021 Than Ngo <than@redhat.com> - 2.0.0-8
|
|
- RHEL 9.0.0 Alpha build
|
|
|
|
* Mon Sep 21 2020 Than Ngo <than@redhat.com> - 2.0.0-7
|
|
- Related: #1867027, fix #119
|
|
|
|
* Thu Aug 20 2020 Than Ngo <than@redhat.com> - 2.0.0-6
|
|
- Related: #1867027, fix #92
|
|
|
|
* Fri Aug 07 2020 Than Ngo <than@redhat.com> - 2.0.0-5
|
|
- Resolves: #1867027, more fixes for #89, #109, #110, #111, #112, #113, #114, #116
|
|
|
|
* Tue Jul 21 2020 Than Ngo <than@redhat.com> - 2.0.0-4
|
|
- Related: #1844190, more fixes for #84, #85, #86, #88, #98, #104, #105, #107
|
|
|
|
* Fri Jul 03 2020 Than Ngo <than@redhat.com> - 2.0.0-3
|
|
- Related: #1844190, drop 1944799.yml
|
|
|
|
* Mon Jun 29 2020 Than Ngo <than@redhat.com> - 2.0.0-2
|
|
- Related: #1844190, more fixes for #78, #79, #81, #82, #94-#97, #99, #101-#102
|
|
|
|
* Mon Jun 08 2020 Than Ngo <than@redhat.com> - 2.0.0-1
|
|
- Resolves: #1844190, rebase to 2.0.0
|
|
|
|
* Thu May 07 2020 Than Ngo <than@redhat.com> - 1.1.1-2
|
|
- Resolves: #1829495, fix summary
|
|
|
|
* Mon Oct 21 2019 Than Ngo <than@redhat.com> - 1.1.1-1
|
|
- rebase to 1.1.1
|
|
- always use ansible_hostname + ansible_domain instead of ansible_fqdn
|
|
- use {{ ansible_hostname }}.{{ ansible_domain }} instead of {{ ansible_fqdn }}
|
|
- added LC_ALL=C before commands for which the outputs are to be evaluated
|
|
|
|
* Thu Sep 12 2019 Than Ngo <than@redhat.com> - 1.1-1
|
|
- rebase to 1.1
|
|
|
|
* Fri Jun 28 2019 Than Ngo <than@redhat.com> - 1.0-1
|
|
- Initial release.
|