!34 主机及主机组管理、hotpatch插件、定时下载安全公告、定时漏洞扫描、数据矫正

From: @gongzt 
Reviewed-by: @zhu-yuncheng 
Signed-off-by: @zhu-yuncheng
This commit is contained in:
openeuler-ci-bot 2023-04-18 03:25:07 +00:00 committed by Gitee
commit d5df699226
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 37 additions and 3 deletions

BIN
aops-apollo-v1.2.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,27 +1,34 @@
Name: aops-apollo Name: aops-apollo
Version: v1.1.1 Version: v1.2.0
Release: 1 Release: 1
Summary: Cve management service, monitor machine vulnerabilities and provide fix functions. Summary: Cve management service, monitor machine vulnerabilities and provide fix functions.
License: MulanPSL2 License: MulanPSL2
URL: https://gitee.com/openeuler/%{name} URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
Requires: aops-vulcanus >= %{version}-%{release} Requires: aops-vulcanus >= v1.2.0
Requires: python3-elasticsearch python3-flask-restful python3-marshmallow >= 3.13.0 Requires: python3-elasticsearch python3-flask-restful python3-marshmallow >= 3.13.0
Requires: python3-sqlalchemy python3-PyMySQL python3-Flask-APScheduler >= 1.11.0 Requires: python3-sqlalchemy python3-PyMySQL python3-Flask-APScheduler >= 1.11.0
Requires: python3-PyYAML python3-flask Requires: python3-PyYAML python3-flask
Requires: python3-retrying python3-lxml
Provides: aops-apollo Provides: aops-apollo
%description %description
Cve management service, monitor machine vulnerabilities and provide fix functions. Cve management service, monitor machine vulnerabilities and provide fix functions.
%package -n dnf-hotpatch-plugin
Summary: dnf hotpatch plugin
Requires: python3-hawkey python3-dnf syscare
%description -n dnf-hotpatch-plugin
dnf hotpatch plugin, it's about hotpatch query and fix
%prep %prep
%autosetup -n %{name}-%{version} %autosetup -n %{name}-%{version}
# build for aops-apollo # build for aops-apollo
%py3_build %py3_build
@ -29,17 +36,44 @@ Cve management service, monitor machine vulnerabilities and provide fix function
# install for aops-apollo # install for aops-apollo
%py3_install %py3_install
#install for aops-dnf-plugin
cp -r hotpatch %{buildroot}/%{python3_sitelib}/dnf-plugins/
%files %files
%doc README.* %doc README.*
%attr(0644,root,root) %{_sysconfdir}/aops/apollo.ini %attr(0644,root,root) %{_sysconfdir}/aops/apollo.ini
%attr(0644,root,root) %{_sysconfdir}/aops/apollo_crontab.ini
%attr(0755,root,root) %{_bindir}/aops-apollo %attr(0755,root,root) %{_bindir}/aops-apollo
%attr(0755,root,root) /usr/lib/systemd/system/aops-apollo.service %attr(0755,root,root) /usr/lib/systemd/system/aops-apollo.service
%{python3_sitelib}/aops_apollo*.egg-info %{python3_sitelib}/aops_apollo*.egg-info
%{python3_sitelib}/apollo/* %{python3_sitelib}/apollo/*
%files -n dnf-hotpatch-plugin
%{python3_sitelib}/dnf-plugins/*
%changelog %changelog
* Mon Apr 17 2023 gongzhengtang<gong_zhengtang@163.com> - v1.2.0-1
- add updated security advisory at regular time
- add execute the CVE scan command at regular time
- add correct abnormal data at regular time
- add dnf hotpatch list plugin
* Tue Dec 27 2022 wenxin<shusheng.wen@outlook.com> - v1.1.2-3
- modify version for vulcanus
* Thu Dec 15 2022 ptyang<1475324955@qq.com> - v1.1.2-2
- fix "PARTIAL_SUCCEED" bug
* Wed Dec 07 2022 wenxin<shusheng.wen@outlook.com> - v1.1.2-1
- modify status code for upload security advisories;fix cve query error
* Mon Dec 05 2022 gongzhengtang<gong_zhengtang@163.com> - v1.1.1-3
- Avoid the occasional 500 or query error when the api
- service is started through uwsgi
* Fri Dec 02 2022 gongzhengtang<gong_zhengtang@163.com> - v1.1.1-2
- fix param length validate and other bugs
* Fri Dec 02 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-1 * Fri Dec 02 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-1
- fix some bugs - fix some bugs