summaryrefslogtreecommitdiff
path: root/aops-zeus.spec
blob: a74a38c93fb62291d3ef877c1a0dd695b3cd1e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
%define vulcanus_version v2.1.0
Name:		aops-zeus
Version:	v2.2.0
Release:	1
Summary:	A service which is the foundation of aops.
License:	MulanPSL2
URL:		https://gitee.com/openeuler/%{name}
Source0:	%{name}-%{version}.tar.gz


BuildRequires:  python3-setuptools
Requires:   python3-pyyaml python3-PyMySQL python3-kazoo python3-click


%description
Provide one-click aops deployment, service start and stop, hot loading of
configuration files, and database initialization.
Provides:   aops-zeus

%package -n zeus-host-information
Summary: A host manager service which is the foundation of aops.
Requires:  aops-vulcanus >= %{vulcanus_version} aops-zeus >= %{version}
Requires:  python3-gevent python3-uWSGI python3-paramiko

%description -n zeus-host-information
A host manager service which is the foundation of aops.

%package -n zeus-user-access
Summary: A user manager service which is the foundation of aops.
Requires:   aops-vulcanus >= %{vulcanus_version} aops-zeus >= %{version}
Requires:   python3-celery python3-uWSGI

%description -n zeus-user-access
A user manager service which is the foundation of aops.

%package -n async-task
Summary: A async task of aops.
Requires:   aops-vulcanus >= %{vulcanus_version} python3-celery python3-paramiko


%description -n async-task
A async task of aops.

%package -n zeus-operation
Summary: A operation manager service which is the foundation of aops.
Requires:  aops-vulcanus >= %{vulcanus_version} aops-zeus >= %{version}
Requires:  python3-gevent python3-uWSGI python3-paramiko

%description -n zeus-operation
A operation manager of aops.

%package -n zeus-distribute
Summary: A distributed service of aops.
Requires:   aops-vulcanus >= %{vulcanus_version} aops-zeus >= %{version}
Requires:   python3-uWSGI python3-gevent
%description -n zeus-distribute
A distributed service of aops.

%prep
%autosetup -n %{name}-%{version}


# build for aops-zeus
%py3_build

# build for zeus-host-information
pushd host-information-service
%py3_build
popd

# build for zeus-operation
pushd operation-service
%py3_build
popd

# build for zeus-user-access
pushd user-access-service
%py3_build
popd

# build for async-task
pushd async-task
%py3_build
popd

# build for zeus-distribute
pushd distribute-service
%py3_build
popd

# install for aops-zeus
%py3_install

# install for zeus-host-information
pushd host-information-service
%py3_install
mkdir -p %{buildroot}/opt/aops/database/
cp zeus/host_information_service/database/*.sql %{buildroot}/opt/aops/database/
popd

# install for zeus-operation
pushd operation-service
%py3_install
mkdir -p %{buildroot}/opt/aops/database/
cp zeus/operation_service/database/*.sql %{buildroot}/opt/aops/database/
popd

# install for zeus-user-access
pushd user-access-service
%py3_install
mkdir -p %{buildroot}/opt/aops/database/
cp zeus/user_access_service/database/*.sql %{buildroot}/opt/aops/database/
popd

# install for async-task
pushd async-task
%py3_install
mkdir -p %{buildroot}/opt/aops/celery
popd

# install for zeus-distribute
pushd distribute-service
%py3_install
popd

%files
%doc README.*
%{python3_sitelib}/aops_zeus*.egg-info
%{python3_sitelib}/zeus/*
%attr(0755,root,root) %{_bindir}/aops-cli

%files -n zeus-host-information
%attr(0644,root,root) %{_sysconfdir}/aops/conf.d/zeus-host-information.yml
%attr(0755,root,root) %{_unitdir}/zeus-host-information.service
%{python3_sitelib}/zeus_host_information*.egg-info/*
%{python3_sitelib}/zeus/host_information_service/*
%attr(0755, root, root) /opt/aops/database/*

%files -n zeus-operation
%attr(0644,root,root) %{_sysconfdir}/aops/conf.d/zeus-operation.yml
%attr(0755,root,root) %{_unitdir}/zeus-operation.service
%{python3_sitelib}/zeus_operation*.egg-info/*
%{python3_sitelib}/zeus/operation_service/*
%attr(0755, root, root) /opt/aops/database/*

%files -n zeus-user-access
%attr(0644,root,root) %{_sysconfdir}/aops/conf.d/zeus-user-access.yml
%attr(0755,root,root) %{_unitdir}/zeus-user-access.service
%{python3_sitelib}/zeus_user_access*.egg-info/*
%{python3_sitelib}/zeus/user_access_service/*
%attr(0755, root, root) /opt/aops/database/*

%files -n async-task
%attr(0644,root,root) %{_sysconfdir}/aops/crontab.yml
%attr(0644,root,root) %{_sysconfdir}/aops/sync-conf.d/instance.properties
%attr(0644,root,root) %{_sysconfdir}/aops/sync-conf.d/rdb/*
%attr(0755,root,root) %{_unitdir}/async-task.service
%{python3_sitelib}/async_task*.egg-info/*
%{python3_sitelib}/async_task/*
%attr(0755,root,root) %{_bindir}/async-task
%dir %attr(0644,root,root) /opt/aops/celery

%files -n zeus-distribute
%attr(0644,root,root) %{_sysconfdir}/aops/conf.d/zeus-distribute.yml
%attr(0755,root,root) %{_unitdir}/zeus-distribute.service
%{python3_sitelib}/zeus_distribute*.egg-info/*
%{python3_sitelib}/zeus/distribute_service/*

%changelog
* Thu Oct 24 2024 luxuexian<luxuexian@huawei.com> - v2.1.0-1
- Adapt user-access-service to authHub

* Thu Sep 5 2024 luxuexian<luxuexian@huawei.com> - v2.0.0-1
- support osmind operation

* Tue Jul 16 2024 luxuexian<luxuexian@huawei.com> - v2.0.0-1
- Update to v2.0.0
- Add microservice split, cluster management and user management

* Wed May 29 2024 wangguangge<wangguangge@huawei.com> - v1.4.0-2
- add the user access service

* Tue May 28 2024 gongzhengtang<gong_zhengtang@163.com> - v1.4.0-1
- microservice splitting
- scheduled task and asynchronous task
- command line tool

* Tue Apr 9 2024 gongzt<gong_zhengtang@163.com> - v1.3.0-1
- add the function of host information

* Fri Mar 24 2023 wenixn<shusheng.wen@outlook.com> - v1.2.0-1
- update the call method of ceres; add function how to add host from web

* Tue Dec 27 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-4
- Modify uwsgi configuration file fields

* Wed Dec 21 2022 gongzhengtang<gong_zhengtang@163.com> - v1.1.1-3
- disabled mysql installed checked

* Tue Dec 06 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-2
- update delete host, remove the judgment about the workflow

* Fri Dec 02 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-1
- set timeout for cve scan,cve fix ,repo set

* Fri Nov 25 2022 wenxin<shusheng.wen@outlook.com> - v1.1.0-1
- remove test cases that use the responses module
- remove check_es_installed
- add cve cve fix, add cve cve scan

* Tue Nov 22 2022 zhuyuncheng<zhuyuncheng@huawei.com> - v1.0.0-1
- Package init