2020-05-04 15:53:29 -04:00
|
|
|
Name: confluent_osdeploy-x86_64
|
2020-05-04 15:45:35 -04:00
|
|
|
Version: #VERSION#
|
2020-05-04 15:25:04 -04:00
|
|
|
Release: 1
|
2020-05-04 13:49:48 -04:00
|
|
|
Summary: OS Deployment support for confluent
|
|
|
|
|
|
|
|
License: Apache2
|
|
|
|
URL: http://hpc.lenovo.com/
|
2020-05-04 15:53:29 -04:00
|
|
|
Source0: confluent_osdeploy.tar.xz
|
2020-05-04 15:25:04 -04:00
|
|
|
BuildArch: noarch
|
2020-07-22 15:11:58 -04:00
|
|
|
Requires: confluent_ipxe mtools tar
|
2020-05-04 13:49:48 -04:00
|
|
|
BuildRoot: /tmp
|
|
|
|
|
|
|
|
%description
|
|
|
|
This contains support utilities for enabling deployment of x86_64 architecture systems
|
|
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
2020-05-04 15:51:05 -04:00
|
|
|
%setup -n confluent_osdeploy
|
2020-05-04 13:49:48 -04:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p opt/confluent/bin
|
|
|
|
cd utils
|
|
|
|
make all
|
|
|
|
cp copernicus clortho autocons ../opt/confluent/bin
|
|
|
|
cd ..
|
2020-08-11 09:54:53 -04:00
|
|
|
for os in rhvh4 el7 genesis el8 suse15 ubuntu20.04; do
|
2020-05-04 15:25:04 -04:00
|
|
|
mkdir ${os}out
|
|
|
|
cd ${os}out
|
|
|
|
cp -a ../opt .
|
2020-05-04 15:55:22 -04:00
|
|
|
cp -a ../${os}/initramfs/* .
|
2020-06-26 16:23:51 -04:00
|
|
|
cp -a ../common/* .
|
2020-05-07 09:35:32 -04:00
|
|
|
find . | cpio -H newc -o > ../addons.cpio
|
|
|
|
mv ../addons.cpio .
|
2020-05-04 15:25:04 -04:00
|
|
|
cd ..
|
|
|
|
done
|
2020-06-09 08:50:54 -04:00
|
|
|
mkdir esxi7out
|
2020-06-08 17:24:48 -04:00
|
|
|
cd esxi7out
|
2020-06-09 09:51:48 -04:00
|
|
|
cp -a ../opt .
|
|
|
|
cp -a ../esxi7/initramfs/* .
|
2020-06-26 16:23:51 -04:00
|
|
|
cp -a ../common/* .
|
2020-06-09 16:12:22 -04:00
|
|
|
chmod +x bin/* opt/confluent/bin/*
|
2020-06-10 10:17:54 -04:00
|
|
|
tar zcvf ../addons.tgz *
|
|
|
|
mv ../addons.tgz .
|
2020-06-08 17:24:48 -04:00
|
|
|
cd ..
|
2020-06-11 17:18:28 -04:00
|
|
|
cp -a esxi7out esxi6out
|
|
|
|
cp -a esxi7 esxi6
|
2020-05-04 13:49:48 -04:00
|
|
|
|
|
|
|
%install
|
2020-08-11 09:54:53 -04:00
|
|
|
for os in rhvh4 el7 el8 genesis suse15 ubuntu20.04 esxi6 esxi7; do
|
2020-05-04 15:25:04 -04:00
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
2020-06-08 17:24:48 -04:00
|
|
|
cp ${os}out/addons.* %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
2020-05-04 15:57:11 -04:00
|
|
|
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
2020-05-04 15:25:04 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
%files
|
|
|
|
/opt/confluent/lib/osdeploy
|