config/workerconfig/opensuse/workerconfig.spec
Bin Qian 6acd2e3564 Single puppet manifest for AIO controllers
Create a single puppet manifest for AIO controllers.
This change includes:
1. remove workerconfig from an AIO controller deployment
2. running puppet based on subfunctions of the nodes

Depends-on: https://review.opendev.org/c/starlingx/stx-puppet/+/780600
Partial-Bug: 1918139
Signed-off-by: Bin Qian <bin.qian@windriver.com>
Change-Id: Ie3693219e3c19460ac5b617cc216cbc809ec2403
2021-04-14 22:05:55 -04:00

60 lines
1.5 KiB
RPMSpec

Summary: Worker config package
Name: workerconfig
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Packages
URL: https://opendev.org/starlingx/config/
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%define debug_package %{nil}
BuildRequires: systemd
Requires: pkgconfig(systemd)
%description
Initial worker node configuration package for StarlingX project.
%package -n workerconfig-standalone
Summary: The worker config standalone package
Group: System/Packages
%description -n workerconfig-standalone
Initial worker node configuration for StarlingX project.
%define initddir %{_sysconfdir}/init.d/
%define goenableddir %{_sysconfdir}/goenabled.d/
%define systemddir %{_sysconfdir}/systemd/system/
%prep
%setup -n %{name}-%{version}/%{name}
%build
%install
make install INITDDIR=%{buildroot}%{initddir} GOENABLEDDIR=%{buildroot}%{goenableddir} SYSTEMDDIR=%{buildroot}%{systemddir}
%post -n workerconfig-standalone
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
systemctl enable workerconfig.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{initddir}/*
%files -n workerconfig-standalone
%defattr(-,root,root,-)
%dir %{systemddir}/config
%{systemddir}/config/workerconfig-standalone.service
%{goenableddir}/*
%dir %{_sysconfdir}/goenabled.d
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%config %{systemddir}/config/workerconfig-standalone.service
%changelog