Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/heat/files/, sys-cluster/heat/
Date: Wed, 30 Mar 2022 03:27:32
Message-Id: 1648610762.70220f0cde4654bd0832c87a40c710262bee34cc.Alessandro-Barbieri@gentoo
1 commit: 70220f0cde4654bd0832c87a40c710262bee34cc
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Mar 30 03:26:02 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Wed Mar 30 03:26:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70220f0c
7
8 sys-cluster/heat: add 18.0.0.0_rc1
9
10 Closes: https://bugs.gentoo.org/815583
11 Closes: https://bugs.gentoo.org/815586
12 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
13
14 sys-cluster/heat/files/heat-api.service | 16 +++
15 sys-cluster/heat/files/heat-engine.service | 16 +++
16 sys-cluster/heat/files/heat.logrotate | 8 ++
17 sys-cluster/heat/heat-18.0.0.0_rc1.ebuild | 170 +++++++++++++++++++++++++++++
18 4 files changed, 210 insertions(+)
19
20 diff --git a/sys-cluster/heat/files/heat-api.service b/sys-cluster/heat/files/heat-api.service
21 new file mode 100644
22 index 000000000..9c14adc19
23 --- /dev/null
24 +++ b/sys-cluster/heat/files/heat-api.service
25 @@ -0,0 +1,16 @@
26 +[Unit]
27 +Description=OpenStack Heat API
28 +Documentation=http://docs.openstack.org/
29 +After=postgresql.service mysql.service keystone.service rabbitmq-server.service ntp.service network.service
30 +
31 +[Service]
32 +User=heat
33 +Group=heat
34 +ExecStart=/etc/init.d/heat-api systemd-start
35 +ExecStop=/etc/init.d/heat-api systemd-stop
36 +PIDFile=/var/run/heat/heat-api.pid
37 +Restart=on-failure
38 +Type=forking
39 +
40 +[Install]
41 +WantedBy=multi-user.target
42
43 diff --git a/sys-cluster/heat/files/heat-engine.service b/sys-cluster/heat/files/heat-engine.service
44 new file mode 100644
45 index 000000000..8af82acc6
46 --- /dev/null
47 +++ b/sys-cluster/heat/files/heat-engine.service
48 @@ -0,0 +1,16 @@
49 +[Unit]
50 +Description=OpenStack Heat Engine
51 +Documentation=http://docs.openstack.org/
52 +After=postgresql.service mysql.service keystone.service rabbitmq-server.service ntp.service network.service
53 +
54 +[Service]
55 +User=heat
56 +Group=heat
57 +ExecStart=/etc/init.d/heat-engine systemd-start
58 +ExecStop=/etc/init.d/heat-engine systemd-stop
59 +PIDFile=/var/run/heat/heat-engine.pid
60 +Restart=on-failure
61 +Type=forking
62 +
63 +[Install]
64 +WantedBy=multi-user.target
65
66 diff --git a/sys-cluster/heat/files/heat.logrotate b/sys-cluster/heat/files/heat.logrotate
67 new file mode 100644
68 index 000000000..76f11384e
69 --- /dev/null
70 +++ b/sys-cluster/heat/files/heat.logrotate
71 @@ -0,0 +1,8 @@
72 +/var/log/heat/*.log {
73 + daily
74 + missingok
75 + compress
76 + delaycompress
77 + notifempty
78 + copytruncate
79 +}
80
81 diff --git a/sys-cluster/heat/heat-18.0.0.0_rc1.ebuild b/sys-cluster/heat/heat-18.0.0.0_rc1.ebuild
82 new file mode 100644
83 index 000000000..0d5f545e2
84 --- /dev/null
85 +++ b/sys-cluster/heat/heat-18.0.0.0_rc1.ebuild
86 @@ -0,0 +1,170 @@
87 +# Copyright 1999-2022 Gentoo Authors
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=8
91 +
92 +MYP="${P/_rc/rc}"
93 +PYTHON_COMPAT=( python3_{8..9} )
94 +
95 +inherit distutils-r1 linux-info systemd
96 +
97 +DESCRIPTION="A CloudFormation-compatible openstack-native cloud orchestration engine"
98 +HOMEPAGE="
99 + https://launchpad.net/heat
100 + https://opendev.org/openstack/heat/
101 + https://pypi.org/project/openstack-heat/
102 +"
103 +SRC_URI="https://tarballs.openstack.org/${PN}/openstack-${MYP}.tar.gz"
104 +KEYWORDS="~amd64"
105 +S="${WORKDIR}/openstack-${MYP}"
106 +
107 +LICENSE="Apache-2.0 GPL-2"
108 +SLOT="0"
109 +IUSE="+mysql +memcached postgres sqlite"
110 +
111 +RDEPEND="
112 + >=dev-python/pbr-3.1.1[${PYTHON_USEDEP}]
113 + >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
114 + >=dev-python/croniter-0.3.4[${PYTHON_USEDEP}]
115 + >=dev-python/cryptography-2.5[${PYTHON_USEDEP}]
116 + >=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}]
117 + >=dev-python/eventlet-0.18.2[${PYTHON_USEDEP}]
118 + >=dev-python/keystoneauth-3.18.0[${PYTHON_USEDEP}]
119 + >=dev-python/keystonemiddleware-5.1.0[${PYTHON_USEDEP}]
120 + >=dev-python/lxml-4.5.0[${PYTHON_USEDEP}]
121 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
122 + >=dev-python/neutron-lib-1.14.0[${PYTHON_USEDEP}]
123 + >=dev-python/openstacksdk-0.28.0[${PYTHON_USEDEP}]
124 + >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
125 + >=dev-python/oslo-config-6.8.0[${PYTHON_USEDEP}]
126 + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
127 + >=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}]
128 + >=dev-python/oslo-db-6.0.0[${PYTHON_USEDEP}]
129 + >=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}]
130 + >=dev-python/oslo-log-4.3.0[${PYTHON_USEDEP}]
131 + >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}]
132 + >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
133 + >=dev-python/oslo-policy-3.7.0[${PYTHON_USEDEP}]
134 + >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
135 + >=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}]
136 + >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
137 + >=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}]
138 + >=dev-python/oslo-utils-4.5.0[${PYTHON_USEDEP}]
139 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
140 + >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
141 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
142 + >=dev-python/aodhclient-0.9.0[${PYTHON_USEDEP}]
143 + >=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
144 + >=dev-python/python-blazarclient-1.0.1[${PYTHON_USEDEP}]
145 + >=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}]
146 + >=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
147 + >=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}]
148 + >=dev-python/python-heatclient-1.10.0[${PYTHON_USEDEP}]
149 + >=dev-python/python-ironicclient-2.8.0[${PYTHON_USEDEP}]
150 + >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
151 + >=dev-python/python-magnumclient-2.3.0[${PYTHON_USEDEP}]
152 + >=dev-python/python-manilaclient-1.16.0[${PYTHON_USEDEP}]
153 + >=dev-python/python-mistralclient-3.1.0[${PYTHON_USEDEP}]
154 + >=dev-python/python-monascaclient-1.12.0[${PYTHON_USEDEP}]
155 + >=dev-python/python-neutronclient-6.14.0[${PYTHON_USEDEP}]
156 + >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
157 + >=dev-python/python-octaviaclient-1.8.0[${PYTHON_USEDEP}]
158 + >=dev-python/python-openstackclient-3.12.0[${PYTHON_USEDEP}]
159 + >=dev-python/python-saharaclient-1.4.0[${PYTHON_USEDEP}]
160 + >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
161 + >=dev-python/python-troveclient-2.2.0[${PYTHON_USEDEP}]
162 + >=dev-python/python-vitrageclient-2.7.0[${PYTHON_USEDEP}]
163 + >=dev-python/python-zaqarclient-1.3.0[${PYTHON_USEDEP}]
164 + >=dev-python/python-zunclient-3.4.0[${PYTHON_USEDEP}]
165 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
166 + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
167 + >=dev-python/requests-2.23.0[${PYTHON_USEDEP}]
168 + >=dev-python/tenacity-6.1.0[${PYTHON_USEDEP}]
169 + >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
170 + >=dev-python/sqlalchemy-migrate-0.13.0[${PYTHON_USEDEP}]
171 + >=dev-python/stevedore-3.1.0[${PYTHON_USEDEP}]
172 + >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
173 + >=dev-python/yaql-1.1.3[${PYTHON_USEDEP}]
174 +
175 + mysql? (
176 + >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
177 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
178 + )
179 + postgres? (
180 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
181 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
182 + )
183 + sqlite? (
184 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
185 + )
186 +
187 + acct-user/heat
188 + acct-group/heat
189 +"
190 +DEPEND="
191 + ${RDEPEND}
192 + app-admin/sudo
193 +"
194 +BDEPEND="
195 + test? (
196 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
197 + >=dev-python/kombu-5.0.1[${PYTHON_USEDEP}]
198 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
199 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
200 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
201 + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
202 + >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
203 + >=dev-python/tempest-17.1.0[${PYTHON_USEDEP}]
204 + )
205 +"
206 +
207 +REQUIRED_USE="
208 + test? ( mysql )
209 + || ( mysql postgres sqlite )
210 +"
211 +
212 +distutils_enable_tests pytest
213 +
214 +python_prepare_all() {
215 + sed -i '/^hacking/d' test-requirements.txt || die
216 + distutils-r1_python_prepare_all
217 +}
218 +
219 +python_compile_all() {
220 + oslo-config-generator --config-file=config-generator.conf
221 + oslopolicy-sample-generator --config-file etc/heat/heat-policy-generator.conf
222 +}
223 +
224 +python_install_all() {
225 + distutils-r1_python_install_all
226 + diropts -m 0750 -o heat -g heat
227 + keepdir /etc/heat
228 + dodir /etc/heat/environment.d
229 + dodir /etc/heat/templates
230 +
231 + for svc in api api-cfn engine; do
232 + newinitd "${FILESDIR}/heat.initd" "heat-${svc}"
233 + done
234 +
235 + insinto /etc/heat
236 + insopts -m 0640 -o heat -g heat
237 + doins heat.conf.sample
238 + doins etc/heat/policy.yaml.sample
239 + doins "etc/heat/api-paste.ini"
240 + insinto /etc/heat/templates
241 + doins "etc/heat/templates/"*
242 + insinto /etc/heat/environment.d
243 + doins "etc/heat/environment.d/default.yaml"
244 +
245 + dodir /var/log/heat
246 + fowners heat:heat /var/log/heat
247 + keepdir /var/log/heat
248 +
249 + systemd_dounit "${FILESDIR}/heat-engine.service"
250 + systemd_dounit "${FILESDIR}/heat-api.service"
251 +
252 + insinto /etc/logrotate.d
253 + doins "${FILESDIR}/heat.logrotate"
254 +
255 + rm -r "${ED}/usr/etc"
256 +}