Accepting request 495854 from devel:CaaSP
OBS-URL: https://build.opensuse.org/request/show/495854 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/health-checker?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
health-checker-0.4.tar.bz2
Normal file
3
health-checker-0.4.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:633dde3b1e8d19939076dc76c875786c91f7c9ec77a0b96e79da7f1e822141ef
|
||||||
|
size 71030
|
18
health-checker.changes
Normal file
18
health-checker.changes
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 18 13:51:44 CEST 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.4
|
||||||
|
- Rename package to health-checker
|
||||||
|
- Create new sub-package for CaaSP plugins
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 24 15:44:23 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.2
|
||||||
|
- Add plugins for etcd, etc-overlayfs and rebootmgr
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 23 16:03:14 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
108
health-checker.spec
Normal file
108
health-checker.spec
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
#
|
||||||
|
# spec file for package health-checker
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: health-checker
|
||||||
|
Version: 0.4
|
||||||
|
Release: 0
|
||||||
|
Summary: Verify that all important services are running
|
||||||
|
License: GPL-2.0
|
||||||
|
Group: System/Base
|
||||||
|
Url: https://github.com/kubic-project/health-checker
|
||||||
|
Source: health-checker-%{version}.tar.bz2
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Obsoletes: caasp-health-checker <= 0.2
|
||||||
|
Requires: health-checker-plugins = 1.0
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
health-checker is a service running once at every reboot to verify,
|
||||||
|
that all important services are running. If it is the first reboot after
|
||||||
|
an update, an automatic rollback to the last working snapshot is made.
|
||||||
|
If this is not after an update, a reboot is made. If this does not help,
|
||||||
|
the services will be disabled.
|
||||||
|
This package does not contain any checks, for this, additional
|
||||||
|
plugins for different products are needed.
|
||||||
|
|
||||||
|
%package plugins-caasp
|
||||||
|
Summary: Health-checker plugins for SUSE CaaS Platform
|
||||||
|
Requires: %{name} >= %{version}
|
||||||
|
Provides: health-checker-plugins = 1.0
|
||||||
|
|
||||||
|
%description plugins-caasp
|
||||||
|
This package contains health-checker plugins for testing that
|
||||||
|
SUSE CaaS Platform did boot correct.
|
||||||
|
|
||||||
|
%package testing
|
||||||
|
Summary: Test plugin for health-checker
|
||||||
|
Requires: %{name} >= %{version}
|
||||||
|
Provides: health-checker-plugins = 1.0
|
||||||
|
|
||||||
|
%description testing
|
||||||
|
This package contains a script for testing the CaaSP health checker.
|
||||||
|
It will report success or failures depending on previous states.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n health-checker-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||||
|
ln -sf service %{buildroot}%{_sbindir}/rchealth-checker
|
||||||
|
# dracut module does not work yet
|
||||||
|
rm -rf %{buildroot}/usr/lib/dracut
|
||||||
|
%fdupes %{buildroot}%{_mandir}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre health-checker.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%service_add_post health-checker.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun health-checker.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun health-checker.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc NEWS COPYING README.md
|
||||||
|
%{_prefix}/lib/systemd/system/health-checker.service
|
||||||
|
%dir %{_prefix}/lib/health-checker/
|
||||||
|
%{_prefix}/lib/health-checker/btrfs-subvolumes-mounted.sh
|
||||||
|
%{_sbindir}/health-checker
|
||||||
|
%{_sbindir}/rchealth-checker
|
||||||
|
%{_mandir}/man8/health-checker.8%{ext_man}
|
||||||
|
%{_mandir}/man8/health-checker.service.8%{ext_man}
|
||||||
|
|
||||||
|
%files plugins-caasp
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_prefix}/lib/health-checker/etcd.sh
|
||||||
|
%{_prefix}/lib/health-checker/etc-overlayfs.sh
|
||||||
|
%{_prefix}/lib/health-checker/rebootmgr.sh
|
||||||
|
|
||||||
|
%files testing
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_prefix}/lib/health-checker/health-check-tester.sh
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user