0fa425fd94
This is a new service being added to alarm expiring certificates. The service will run on all active controllers. Initial commit is just the skeleton structure. Tested by installing an ISO image and new service comes up under 'smc service-list'. Story: 2008946 Task: 42852 Depends-on: https://review.opendev.org/c/starlingx/ha/+/801118 Depends-on: https://review.opendev.org/c/starlingx/stx-puppet/+/801117 Signed-off-by: Sabeel Ansari <Sabeel.Ansari@windriver.com> Change-Id: I8ee12db6903bd2d29230e4adf9f1823b3d4655ee
51 lines
1.2 KiB
RPMSpec
51 lines
1.2 KiB
RPMSpec
Summary: StarlingX Certificate Alarm Package
|
|
Name: cert-alarm
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: systemd-devel
|
|
|
|
%define ocf_resourced /usr/lib/ocf/resource.d
|
|
|
|
%description
|
|
StarlingX Certificate Alarm Package
|
|
|
|
%define local_etc_initd /etc/init.d/
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
install -m 755 -p -D cert-alarm %{buildroot}/usr/lib/ocf/resource.d/platform/cert-alarm
|
|
install -m 644 -p -D cert-alarm.service %{buildroot}%{_unitdir}/cert-alarm.service
|
|
install -m 644 -p -D cert-alarm.syslog %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/cert-alarm.conf
|
|
install -m 644 -p -D cert-alarm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/cert-alarm.conf
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
|
|
# SM OCF Start/Stop/Monitor Scripts
|
|
%{ocf_resourced}/platform/cert-alarm
|
|
|
|
# systemctl service files
|
|
%{_unitdir}/cert-alarm.service
|
|
|
|
# logfile config files
|
|
%{_sysconfdir}/syslog-ng/conf.d/cert-alarm.conf
|
|
%{_sysconfdir}/logrotate.d/cert-alarm.conf
|