aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-03-31 15:45:56 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-03-31 15:45:56 +0200
commit925cfef4c804cb300fe42998015454a5d14d0c12 (patch)
tree5a32502cf3b1670fba6a650c23a3bbbd5ad9935e
parentsys-cluster/nanos6: add 2.7 (diff)
downloadguru-925cfef4c804cb300fe42998015454a5d14d0c12.tar.gz
guru-925cfef4c804cb300fe42998015454a5d14d0c12.tar.bz2
guru-925cfef4c804cb300fe42998015454a5d14d0c12.zip
sys-cluster/placement: add 7.0.0, drop 7.0.0.0_rc1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
-rw-r--r--sys-cluster/placement/Manifest3
-rw-r--r--sys-cluster/placement/files/placement.logrotate8
-rw-r--r--sys-cluster/placement/placement-7.0.0.ebuild (renamed from sys-cluster/placement/placement-7.0.0.0_rc1.ebuild)18
3 files changed, 21 insertions, 8 deletions
diff --git a/sys-cluster/placement/Manifest b/sys-cluster/placement/Manifest
index 6b3b5a6dd..839405c99 100644
--- a/sys-cluster/placement/Manifest
+++ b/sys-cluster/placement/Manifest
@@ -1,2 +1 @@
-DIST openstack-placement-7.0.0.0rc1.tar.gz 559927 BLAKE2B 32efcd63c5e6c98050ab1e8df82c51c3b0f4bc87404470ece58bd53e1396b5399f56cc2a03effbe315704becba6899df308bc9f7750a8c62fb0117bd358bdb60 SHA512 3888fdd36cec4e9a8b73f6e1d8bb75fa3afa20302d06f982d6d9c748b797011961707a3955c03003c7c94351f90d00038cd32817232f78cc514c0b46de6f0a0a
-DIST placement.conf.sample-7.0.0.0_rc1 26306 BLAKE2B 037ce73d52066fc2f2fe0542c10e3879c513ca23f127a03cd575cca0d21f7b2f4f36491c238897cacd962072797d9d2fd50be054c3ae09f95f5417ab9758b289 SHA512 640329729d0964b67a25837692f0db0f5e9682aff6bd1f3e124657c4bc0de7f6a9f65a5c17889cd6c0a0584d471c880865a59b939262ed8beac2ae452d0ea02a
+DIST openstack-placement-7.0.0.tar.gz 559628 BLAKE2B 5abc67d3728b5ab3dd77df1649230891fe09dc37191bc0c74edb83a841099a6e4ad57560e8a56bd66fba56f0accb1b99eced55379bc3251bfda5c379f9c75b8d SHA512 9b2c0f730002c36e0e50a0468f3aec68f3d518d66cdec03c3324bba43aa1dd36b6f79d8d2775bce64e375265a4aab9b03b83243ea04302ef97f4cebd83793c36
diff --git a/sys-cluster/placement/files/placement.logrotate b/sys-cluster/placement/files/placement.logrotate
new file mode 100644
index 000000000..5db9aa4bf
--- /dev/null
+++ b/sys-cluster/placement/files/placement.logrotate
@@ -0,0 +1,8 @@
+/var/log/placement/*.log {
+ daily
+ missingok
+ compress
+ delaycompress
+ notifempty
+ copytruncate
+}
diff --git a/sys-cluster/placement/placement-7.0.0.0_rc1.ebuild b/sys-cluster/placement/placement-7.0.0.ebuild
index 3192119db..483cb3351 100644
--- a/sys-cluster/placement/placement-7.0.0.0_rc1.ebuild
+++ b/sys-cluster/placement/placement-7.0.0.ebuild
@@ -6,17 +6,14 @@ EAPI=8
MYP="${P//_/}"
PYTHON_COMPAT=( python3_{8..9} )
-inherit distutils-r1
+inherit distutils-r1 tmpfiles
DESCRIPTION="A HTTP service for managing, selecting, and claiming cloud resources"
HOMEPAGE="
https://github.com/openstack/placement
https://opendev.org/openstack/placement
"
-SRC_URI="
- https://dev.gentoo.org/~prometheanfire/dist/openstack/placement/victoria/placement.conf.sample -> placement.conf.sample-${PV}
- https://tarballs.openstack.org/${PN}/openstack-${MYP}.tar.gz
-"
+SRC_URI="https://tarballs.openstack.org/${PN}/openstack-${MYP}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/openstack-${MYP}"
@@ -79,14 +76,23 @@ REQUIRED_USE="
distutils_enable_tests pytest
+python_compile_all() {
+ oslo-config-generator --config-file=etc/placement/config-generator.conf || die
+ oslopolicy-sample-generator --config-file=etc/placement/policy-generator.conf || die
+}
+
python_install_all() {
distutils-r1_python_install_all
diropts -m 0750 -o placement -g placement
insinto /etc/placement
insopts -m 0640 -o placement -g placement
- newins "${DISTDIR}/placement.conf.sample-${PV}" placement.conf.sample
+
+ doins etc/placement/placement.conf.sample
+ doins etc/placement/policy.yaml.sample
dobin tools/mysql-migrate-db.sh
dobin tools/postgresql-migrate-db.sh
+
+ newtmpfiles "${FILESDIR}/placement.tmpfile" placement.conf
}