Compare commits

...

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

8 changed files with 50 additions and 4 deletions

2
.gitignore vendored Normal file → Executable file
View File

@ -1 +1 @@
SOURCES/v0.14.0.tar.gz
/v*.tar.gz

View File

@ -1 +1 @@
6c94c4e8961505c4b704248f77ed76f20892cd4d SOURCES/v0.14.0.tar.gz
2e9791bf98c5f1ac57c2ddf7be4dc04d59a9a6f3 v0.15.4.tar.gz

3
README.md Executable file
View File

@ -0,0 +1,3 @@
# greenboot
The greenboot package

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,8 +1,8 @@
%global debug_package %{nil}
Name: greenboot
Version: 0.14.0
Release: 3%{?dist}
Version: 0.15.4
Release: 1%{?dist}
Summary: Generic Health Check Framework for systemd
License: LGPLv2+
@ -76,6 +76,7 @@ install -DpZm 0644 usr/lib/systemd/system/*.service %{buildroot}%{_unitdir}
install -DpZm 0644 usr/lib/tmpfiles.d/greenboot-status-motd.conf %{buildroot}%{_tmpfilesdir}/greenboot-status-motd.conf
install -DpZm 0755 usr/lib/greenboot/check/required.d/* %{buildroot}%{_prefix}/lib/%{name}/check/required.d
install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib/%{name}/check/wanted.d
install -DpZm 0644 etc/greenboot/greenboot.conf %{buildroot}%{_sysconfdir}/%{name}/greenboot.conf
%post
%systemd_post greenboot-healthcheck.service
@ -156,6 +157,7 @@ install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib
%{_unitdir}/greenboot-rpm-ostree-grub2-check-fallback.service
%{_libexecdir}/%{name}/redboot-auto-reboot
%{_unitdir}/redboot-auto-reboot.service
%{_sysconfdir}/%{name}/greenboot.conf
%files default-health-checks
%{_prefix}/lib/%{name}/check/required.d/01_repository_dns_check.sh
@ -164,6 +166,28 @@ install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib
%{_prefix}/lib/%{name}/check/required.d/02_watchdog.sh
%changelog
* Tue Feb 21 2023 Paul Whalen <pwhalen@fedoraproject.org> - 0.15.4-1
- Update to 0.15.4
- Resolves: rhbz#2170924
* Tue Nov 29 2022 Paul Whalen <pwhalen@fedoraproject.org> - 0.15.3-1
- The 0.15.3 release
- revert service-monitor
* Thu Sep 08 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-3
- Avoid running health checks if conditions aren't met
* Wed Aug 31 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-2
- disable DefaultDependencies to fix cycle error
* Tue Aug 09 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.15.1-1
- Add conf during installation
* Thu Jul 21 2022 Sayan Paul <saypaul@fedoraproject.org> - 0.15.0-1
- The 0.15.0 release
- Add service-monitor
- Resolves: rhbz#2053469
* Tue Jan 18 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.14.0-3
- Obsolete greenboot-status

3
rpminspect.yaml Normal file
View File

@ -0,0 +1,3 @@
---
inspections:
annocheck: off

1
sources Executable file
View File

@ -0,0 +1 @@
SHA512 (v0.15.4.tar.gz) = c92a139d232183a1249946b399b5e17ed984ce207a557aaa65a9a23f04d71586f8394077e98e68574c2516fde6ff35599c77a2e8909f36278e60af9e0dd182e5

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: /usr/libexec/greenboot/greenboot check # this is your test command, its exit code is the outcome of the test