2020-05-04 19:53:29 +00:00
|
|
|
Name: confluent_osdeploy-x86_64
|
2020-05-04 19:45:35 +00:00
|
|
|
Version: #VERSION#
|
2020-05-04 19:25:04 +00:00
|
|
|
Release: 1
|
2020-05-04 17:49:48 +00:00
|
|
|
Summary: OS Deployment support for confluent
|
|
|
|
|
|
|
|
License: Apache2
|
2021-06-14 20:02:52 +00:00
|
|
|
URL: https://hpc.lenovo.com/
|
2020-05-04 19:53:29 +00:00
|
|
|
Source0: confluent_osdeploy.tar.xz
|
2021-10-07 13:18:24 +00:00
|
|
|
Source1: confluent_el9bin.tar.xz
|
2023-04-04 14:19:13 +00:00
|
|
|
Source2: confluent_el8bin.tar.xz
|
2020-05-04 19:25:04 +00:00
|
|
|
BuildArch: noarch
|
2020-07-22 19:11:58 +00:00
|
|
|
Requires: confluent_ipxe mtools tar
|
2020-05-04 17:49:48 +00:00
|
|
|
BuildRoot: /tmp
|
|
|
|
|
|
|
|
%description
|
|
|
|
This contains support utilities for enabling deployment of x86_64 architecture systems
|
|
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
2023-04-04 14:19:13 +00:00
|
|
|
%setup -n confluent_osdeploy -a 2 -a 1
|
2020-05-04 17:49:48 +00:00
|
|
|
|
|
|
|
%build
|
2023-04-04 14:19:13 +00:00
|
|
|
#cd utils
|
|
|
|
#make all
|
|
|
|
#cp confluent_imginfo copernicus clortho autocons ../opt/confluent/bin
|
|
|
|
#cp start_root urlmount ../stateless-bin/
|
|
|
|
#cd ..
|
2021-10-06 20:59:47 +00:00
|
|
|
ln -s el8 el9
|
2023-04-07 19:46:29 +00:00
|
|
|
for os in rhvh4 el7 genesis el8 suse15 ubuntu18.04 ubuntu20.04 ubuntu22.04 coreos el9; do
|
2020-05-04 19:25:04 +00:00
|
|
|
mkdir ${os}out
|
|
|
|
cd ${os}out
|
2021-10-06 20:59:47 +00:00
|
|
|
if [ -d ../${os}bin ]; then
|
|
|
|
cp -a ../${os}bin/opt .
|
2021-10-06 19:51:12 +00:00
|
|
|
else
|
2023-04-04 14:19:13 +00:00
|
|
|
cp -a ../el8bin/opt .
|
2021-10-06 19:51:12 +00:00
|
|
|
fi
|
2020-05-04 19:55:22 +00:00
|
|
|
cp -a ../${os}/initramfs/* .
|
2021-11-08 21:23:56 +00:00
|
|
|
cp -a ../common/initramfs/* .
|
2020-05-07 13:35:32 +00:00
|
|
|
find . | cpio -H newc -o > ../addons.cpio
|
|
|
|
mv ../addons.cpio .
|
2020-05-04 19:25:04 +00:00
|
|
|
cd ..
|
|
|
|
done
|
2023-08-17 15:28:29 +00:00
|
|
|
for os in el7 el8 suse15 el9 ubuntu20.04 ubuntu22.04; do
|
2021-06-03 21:17:42 +00:00
|
|
|
mkdir ${os}disklessout
|
|
|
|
cd ${os}disklessout
|
2021-10-06 20:59:47 +00:00
|
|
|
if [ -d ../${os}bin ]; then
|
|
|
|
cp -a ../${os}bin/opt .
|
2021-10-06 19:51:12 +00:00
|
|
|
else
|
2023-04-04 14:19:13 +00:00
|
|
|
cp -a ../el8bin/opt .
|
2021-10-06 19:51:12 +00:00
|
|
|
fi
|
2021-06-14 18:37:40 +00:00
|
|
|
cp -a ../${os}-diskless/initramfs/* .
|
2021-11-08 21:23:56 +00:00
|
|
|
cp -a ../common/initramfs/* .
|
2021-10-06 20:59:47 +00:00
|
|
|
if [ -d ../${os}bin ]; then
|
|
|
|
cp -a ../${os}bin/stateless-bin/* opt/confluent/bin
|
2021-10-06 19:51:12 +00:00
|
|
|
else
|
2023-04-04 14:19:13 +00:00
|
|
|
cp -a ../el8bin/stateless-bin/* opt/confluent/bin
|
2021-10-06 19:51:12 +00:00
|
|
|
fi
|
2021-06-03 21:17:42 +00:00
|
|
|
find . | cpio -H newc -o > ../addons.cpio
|
|
|
|
mv ../addons.cpio .
|
|
|
|
cd ..
|
|
|
|
done
|
2020-06-09 12:50:54 +00:00
|
|
|
mkdir esxi7out
|
2020-06-08 21:24:48 +00:00
|
|
|
cd esxi7out
|
2023-04-04 15:24:10 +00:00
|
|
|
cp -a ../el8bin/opt .
|
2020-06-09 13:51:48 +00:00
|
|
|
cp -a ../esxi7/initramfs/* .
|
2021-11-08 21:23:56 +00:00
|
|
|
cp -a ../common/initramfs/* .
|
2020-06-09 20:12:22 +00:00
|
|
|
chmod +x bin/* opt/confluent/bin/*
|
2020-06-10 14:17:54 +00:00
|
|
|
tar zcvf ../addons.tgz *
|
|
|
|
mv ../addons.tgz .
|
2020-06-08 21:24:48 +00:00
|
|
|
cd ..
|
2020-06-11 21:18:28 +00:00
|
|
|
cp -a esxi7out esxi6out
|
|
|
|
cp -a esxi7 esxi6
|
2022-07-08 17:36:21 +00:00
|
|
|
cp -a esxi7out esxi8out
|
|
|
|
cp -a esxi7 esxi8
|
2020-05-04 17:49:48 +00:00
|
|
|
|
|
|
|
%install
|
2022-04-26 12:09:50 +00:00
|
|
|
mkdir -p %{buildroot}/opt/confluent/share/licenses/confluent_osdeploy/
|
|
|
|
cp LICENSE %{buildroot}/opt/confluent/share/licenses/confluent_osdeploy/
|
2023-04-07 20:17:37 +00:00
|
|
|
for os in rhvh4 el7 el8 el9 genesis suse15 ubuntu20.04 ubuntu18.04 ubuntu22.04 esxi6 esxi7 esxi8 coreos; do
|
2020-05-04 19:25:04 +00:00
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
2020-06-08 21:24:48 +00:00
|
|
|
cp ${os}out/addons.* %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
2021-06-14 18:38:38 +00:00
|
|
|
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
2021-11-08 21:23:56 +00:00
|
|
|
for targ in %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles/*; do
|
|
|
|
cp -a common/profile/* $targ
|
|
|
|
done
|
2021-06-03 21:17:42 +00:00
|
|
|
if [ -d ${os}disklessout ]; then
|
2021-06-04 21:45:52 +00:00
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
|
2021-06-15 12:00:09 +00:00
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/profiles
|
2021-06-03 21:17:42 +00:00
|
|
|
cp ${os}disklessout/addons.* %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
|
2021-06-14 18:38:38 +00:00
|
|
|
cp -a ${os}-diskless/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os-diskless/profiles
|
2021-11-08 21:23:56 +00:00
|
|
|
for targ in %{buildroot}/opt/confluent/lib/osdeploy/$os-diskless/profiles/*; do
|
|
|
|
cp -a common/profile/* $targ
|
|
|
|
done
|
2021-06-03 21:17:42 +00:00
|
|
|
fi
|
2020-05-04 19:25:04 +00:00
|
|
|
done
|
2021-07-21 17:57:06 +00:00
|
|
|
find %{buildroot}/opt/confluent/lib/osdeploy/ -name .gitignore -exec rm -f {} +
|
2020-05-04 19:25:04 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
/opt/confluent/lib/osdeploy
|
2022-04-26 12:09:50 +00:00
|
|
|
%license /opt/confluent/share/licenses/confluent_osdeploy/LICENSE
|