public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/
@ 2022-04-19 18:31 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-04-19 18:31 UTC (permalink / raw
  To: gentoo-commits

commit:     30936a1cecd66be90b501a92d219e537d4bdda84
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr 19 00:22:07 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Apr 19 18:31:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30936a1c

sys-auth/keystone: multiple improvements

systemd unit
sysctl conf
removed optional dependencies

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-auth/keystone/files/openstack-keystone.service | 13 ++++++
 sys-auth/keystone/files/openstack-keystone.sysctl  |  3 ++
 ...one-21.0.0.ebuild => keystone-21.0.0-r1.ebuild} | 51 ++++++++--------------
 sys-auth/keystone/metadata.xml                     |  4 --
 4 files changed, 33 insertions(+), 38 deletions(-)

diff --git a/sys-auth/keystone/files/openstack-keystone.service b/sys-auth/keystone/files/openstack-keystone.service
new file mode 100644
index 000000000..f591c4500
--- /dev/null
+++ b/sys-auth/keystone/files/openstack-keystone.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OpenStack Identity Service (code-named Keystone)
+After=syslog.target network.target
+
+[Service]
+Type=notify
+NotifyAccess=all
+Restart=always
+User=keystone
+ExecStart=/usr/bin/keystone-all
+
+[Install]
+WantedBy=multi-user.target

diff --git a/sys-auth/keystone/files/openstack-keystone.sysctl b/sys-auth/keystone/files/openstack-keystone.sysctl
new file mode 100644
index 000000000..682c160e0
--- /dev/null
+++ b/sys-auth/keystone/files/openstack-keystone.sysctl
@@ -0,0 +1,3 @@
+# By default, keystone starts a service on IANA-assigned port 35357
+# http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
+net.ipv4.ip_local_reserved_ports = 35357

diff --git a/sys-auth/keystone/keystone-21.0.0.ebuild b/sys-auth/keystone/keystone-21.0.0-r1.ebuild
similarity index 86%
rename from sys-auth/keystone/keystone-21.0.0.ebuild
rename to sys-auth/keystone/keystone-21.0.0-r1.ebuild
index b0be04ded..bf0863462 100644
--- a/sys-auth/keystone/keystone-21.0.0.ebuild
+++ b/sys-auth/keystone/keystone-21.0.0-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 MYP="${P/_/}"
 PYTHON_COMPAT=( python3_{8..9} )
 
-inherit distutils-r1 tmpfiles
+inherit distutils-r1 optfeature systemd tmpfiles
 
 DESCRIPTION="The Openstack authentication, authorization, and service catalog"
 HOMEPAGE="
@@ -20,7 +20,6 @@ S="${WORKDIR}/${MYP}"
 KEYWORDS="~amd64"
 LICENSE="Apache-2.0"
 SLOT="0"
-IUSE="+sqlite ldap memcached mongo mysql postgres"
 
 RDEPEND="
 	>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
@@ -57,33 +56,8 @@ RDEPEND="
 	>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
 	>=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
 
-	ldap? (
-		>=dev-python/python-ldap-3.1.0[${PYTHON_USEDEP}]
-		>=dev-python/ldappool-2.3.1[${PYTHON_USEDEP}]
-	)
-	mysql? (
-		>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
-	)
-	memcached? (
-		>=dev-python/python-memcached-1.56[${PYTHON_USEDEP}]
-	)
-	mongo? (
-		>=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}]
-	)
-	postgres? (
-		>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
-	)
-	sqlite? (
-		>=dev-python/sqlalchemy-1.3.0[sqlite,${PYTHON_USEDEP}]
-	)
+	>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
 
-	|| (
-		www-servers/uwsgi[python,${PYTHON_USEDEP}]
-		www-apache/mod_wsgi[${PYTHON_USEDEP}]
-		www-servers/gunicorn[${PYTHON_USEDEP}]
-	)
 	acct-user/keystone
 	acct-group/keystone
 "
@@ -101,14 +75,13 @@ BDEPEND="
 		>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
 		>=dev-python/tempest-17.1.0[${PYTHON_USEDEP}]
 		>=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
+
+		>=dev-python/python-ldap-3.1.0[${PYTHON_USEDEP}]
+		>=dev-python/ldappool-2.3.1[${PYTHON_USEDEP}]
 	)
 "
 
 PATCHES=( "${FILESDIR}/${P}-no-usr-local-bin.patch" )
-REQUIRED_USE="
-	|| ( mysql postgres sqlite )
-	test? ( ldap )
-"
 
 distutils_enable_tests pytest
 
@@ -145,6 +118,13 @@ python_install_all() {
 	insinto /etc/logrotate.d
 	newins "${FILESDIR}/keystone.logrotate" keystone.conf
 
+	systemd_dounit "${FILESDIR}/openstack-keystone.service"
+
+	insinto /usr/lib/sysctl.d/
+	newins "${FILESDIR}/openstack-keystone.sysctl" openstack-keystone.conf
+
+	newbin tools/sample_data.sh openstack-keystone-sample-data
+
 	rm -r "${ED}/usr/etc" || die
 }
 
@@ -156,10 +136,13 @@ pkg_postinst() {
 	elog "please do it by modifying /etc/ssl/openssl.cnf"
 	elog "BEFORE issuing the configuration command."
 	elog "Otherwise default values will be used."
-}
 
-pkg_postinst() {
 	tmpfiles_process keystone.conf
+
+	optfeature "ldap" >=dev-python/ldappool-2.3.1 >=dev-python/python-ldap-3.1.0
+	optfeature "memcache" >=dev-python/python-memcached-1.56
+	optfeature "mongodb" >=dev-python/pymongo-3.0.2
+	optfeature "bandit" >=dev-python/bandit-1.1.0
 }
 
 pkg_config() {

diff --git a/sys-auth/keystone/metadata.xml b/sys-auth/keystone/metadata.xml
index e27cc1a8b..c204dc60d 100644
--- a/sys-auth/keystone/metadata.xml
+++ b/sys-auth/keystone/metadata.xml
@@ -6,10 +6,6 @@
     <email>lssndrbarbieri@gmail.com</email>
     <name>Alessandro Barbieri</name>
   </maintainer>
-  <use>
-    <flag name="memcached">Installs dependencies needed for using memcached as a backend</flag>
-    <flag name="mongo">Installs dependencies needed for using mongo as a backend</flag>
-  </use>
   <upstream>
     <remote-id type="launchpad">keystone</remote-id>
   </upstream>


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/
@ 2022-03-30 10:35 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-03-30 10:35 UTC (permalink / raw
  To: gentoo-commits

commit:     9dd644c92d9feb00643d419dd516d1c8d3ff5d6d
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Mar 30 10:22:30 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Mar 30 10:26:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9dd644c9

sys-auth/keystone: logrotate and tmpfile

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-auth/keystone/files/keystone.logrotate                    |  8 ++++++++
 sys-auth/keystone/files/keystone.tmpfile                      |  1 +
 ...ne-21.0.0.0_rc1.ebuild => keystone-21.0.0.0_rc1-r1.ebuild} | 11 ++++++++---
 3 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/sys-auth/keystone/files/keystone.logrotate b/sys-auth/keystone/files/keystone.logrotate
new file mode 100644
index 000000000..2709c72aa
--- /dev/null
+++ b/sys-auth/keystone/files/keystone.logrotate
@@ -0,0 +1,8 @@
+/var/log/keystone/*.log {
+    daily
+    missingok
+    rotate 5
+    compress
+    minsize 100k
+    copytruncate
+}
\ No newline at end of file

diff --git a/sys-auth/keystone/files/keystone.tmpfile b/sys-auth/keystone/files/keystone.tmpfile
new file mode 100644
index 000000000..70745ce2f
--- /dev/null
+++ b/sys-auth/keystone/files/keystone.tmpfile
@@ -0,0 +1 @@
+d /run/keystone 0755 keystone keystone -

diff --git a/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild b/sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
similarity index 95%
rename from sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
rename to sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
index 715dc5765..662dd4ae7 100644
--- a/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
+++ b/sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 MYP="${P/_/}"
 PYTHON_COMPAT=( python3_{8..9} )
 
-inherit distutils-r1
+inherit distutils-r1 tmpfiles
 
 DESCRIPTION="The Openstack authentication, authorization, and service catalog"
 HOMEPAGE="
@@ -131,8 +131,8 @@ python_install_all() {
 	keepdir /etc/keystone /var/log/keystone
 	insinto /etc/keystone
 	insopts -m 0640 -o keystone -g keystone
-	doins etc/nova/keystone.conf.sample
-	doins etc/nova/policy.yaml.sample
+	doins etc/keystone.conf.sample
+	doins etc/keystone.policy.yaml.sample
 	doins etc/logging.conf.sample
 	doins etc/default_catalog.templates
 	insinto /etc/keystone/httpd
@@ -140,6 +140,11 @@ python_install_all() {
 
 	fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone
 
+	newtmpfiles "${FILESDIR}/keystone.tmpfile" keystone.conf
+
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}/keystone.logrotate" keystone.conf
+
 	rm -r "${ED}/usr/etc" || die
 }
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/
@ 2022-03-29 20:53 Alessandro Barbieri
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2022-03-29 20:53 UTC (permalink / raw
  To: gentoo-commits

commit:     6bee848810f08d65215e15fd87c2405f3bf09540
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Mar 29 20:47:04 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Mar 29 20:53:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6bee8488

sys-auth/keystone: add 21.0.0.0_rc1, drop 20.0.0.0_rc1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-auth/keystone/Manifest                         |  3 +-
 .../keystone-21.0.0.0_rc1-no-usr-local-bin.patch   | 47 ++++++++++++++
 ...0.0_rc1.ebuild => keystone-21.0.0.0_rc1.ebuild} | 71 +++++++++++-----------
 3 files changed, 84 insertions(+), 37 deletions(-)

diff --git a/sys-auth/keystone/Manifest b/sys-auth/keystone/Manifest
index 3ab51e8c4..aed973eb6 100644
--- a/sys-auth/keystone/Manifest
+++ b/sys-auth/keystone/Manifest
@@ -1,2 +1 @@
-DIST keystone-20.0.0.0rc1.tar.gz 1729520 BLAKE2B 69d870dacf786a8e7ef8474027e83e15950432d232f221715f850ae731dcc6d6620684c6118d95333d674de1a7e2790919ffc1f09e553e25b2eedb999c5c38d3 SHA512 9ff450d80270f9fe037f0e21f8322de10a0f80c51b59226b8c62f3dc8b07e5af49c63aa33c6682203e295c1eb54842332a02c9ad7b4e9dd64653d1ee4536944e
-DIST keystone.conf.sample-20.0.0.0_rc1 107458 BLAKE2B c1d826acdd671638fc4542864811bda8baa237cfbf24438fa0cedc12e6f29047178cfb1b837c0aef035410848ce3e473e58b51f0eadee4c61eb75f214c65c35a SHA512 6488a1c3eac0d1376db0950cda65c62ba04dc03d896a6c0465ea09b870e5d077ed5012a84657defb9f63db25ce320c884f72c4083e4a233f18930120194ba73b
+DIST keystone-21.0.0.0rc1.tar.gz 1698152 BLAKE2B 703fb7b56a12cc3909a8990a2c21df2fca056f5eda43bd562ff8dcaeb06aa61db60b6d2ba6010d5c987f74f8d529eb66f086e648cbef25f96867e6c6b2644b29 SHA512 290e7ce13de1d7a232ef41166d51585460f6be745daf5477b8d83a8537f09eaecb82d6fabf554be777108b4a281ffb2e65457fe815a0405355a9e19c6f31f442

diff --git a/sys-auth/keystone/files/keystone-21.0.0.0_rc1-no-usr-local-bin.patch b/sys-auth/keystone/files/keystone-21.0.0.0_rc1-no-usr-local-bin.patch
new file mode 100644
index 000000000..cef46b2d3
--- /dev/null
+++ b/sys-auth/keystone/files/keystone-21.0.0.0_rc1-no-usr-local-bin.patch
@@ -0,0 +1,47 @@
+--- a/httpd/keystone-uwsgi-admin.ini
++++ b/httpd/keystone-uwsgi-admin.ini
+@@ -1,5 +1,5 @@
+ [uwsgi]
+-wsgi-file = /usr/local/bin/keystone-wsgi-admin
++wsgi-file = /usr/bin/keystone-wsgi-admin
+ 
+ # Versions of mod_proxy_uwsgi>=2.0.6 should use a UNIX socket, see
+ # http://uwsgi-docs.readthedocs.org/en/latest/Apache.html#mod-proxy-uwsgi
+--- a/httpd/keystone-uwsgi-public.ini
++++ b/httpd/keystone-uwsgi-public.ini
+@@ -1,5 +1,5 @@
+ [uwsgi]
+-wsgi-file = /usr/local/bin/keystone-wsgi-public
++wsgi-file = /usr/bin/keystone-wsgi-public
+ 
+ # Versions of mod_proxy_uwsgi>=2.0.6 should use a UNIX socket, see
+ # http://uwsgi-docs.readthedocs.org/en/latest/Apache.html#mod-proxy-uwsgi
+--- a/httpd/wsgi-keystone.conf
++++ b/httpd/wsgi-keystone.conf
+@@ -3,7 +3,7 @@
+ <VirtualHost *:5000>
+     WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
+     WSGIProcessGroup keystone-public
+-    WSGIScriptAlias / /usr/local/bin/keystone-wsgi-public
++    WSGIScriptAlias / /usr/bin/keystone-wsgi-public
+     WSGIApplicationGroup %{GLOBAL}
+     WSGIPassAuthorization On
+     LimitRequestBody 114688
+@@ -13,7 +13,7 @@
+     ErrorLog /var/log/apache2/keystone.log
+     CustomLog /var/log/apache2/keystone_access.log combined
+ 
+-    <Directory /usr/local/bin>
++    <Directory /usr/bin>
+         <IfVersion >= 2.4>
+             Require all granted
+         </IfVersion>
+@@ -24,7 +24,7 @@
+     </Directory>
+ </VirtualHost>
+ 
+-Alias /identity /usr/local/bin/keystone-wsgi-public
++Alias /identity /usr/bin/keystone-wsgi-public
+ <Location /identity>
+     SetHandler wsgi-script
+     Options +ExecCGI

diff --git a/sys-auth/keystone/keystone-20.0.0.0_rc1.ebuild b/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
similarity index 84%
rename from sys-auth/keystone/keystone-20.0.0.0_rc1.ebuild
rename to sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
index 878d5f905..715dc5765 100644
--- a/sys-auth/keystone/keystone-20.0.0.0_rc1.ebuild
+++ b/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 MYP="${P/_/}"
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8..9} )
 
 inherit distutils-r1
 
@@ -12,12 +12,9 @@ DESCRIPTION="The Openstack authentication, authorization, and service catalog"
 HOMEPAGE="
 	https://opendev.org/openstack/keystone
 	https://launchpad.net/keystone
-	https://pypi.org/project/keystone
-"
-SRC_URI="
-	https://dev.gentoo.org/~prometheanfire/dist/openstack/keystone/victoria/keystone.conf.sample -> keystone.conf.sample-${PV}
-	https://tarballs.openstack.org/${PN}/${MYP}.tar.gz
+	https://pypi.org/project/keystone/
 "
+SRC_URI="https://tarballs.openstack.org/${PN}/${MYP}.tar.gz"
 S="${WORKDIR}/${MYP}"
 
 KEYWORDS="~amd64"
@@ -26,21 +23,11 @@ SLOT="0"
 IUSE="+sqlite ldap memcached mongo mysql postgres"
 
 RDEPEND="
+	>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
 	>=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
 	>=dev-python/flask-1.0.2[${PYTHON_USEDEP}]
 	>=dev-python/flask-restful-0.3.5[${PYTHON_USEDEP}]
 	>=dev-python/cryptography-2.7[${PYTHON_USEDEP}]
-	sqlite? (
-		>=dev-python/sqlalchemy-1.3.0[sqlite,${PYTHON_USEDEP}]
-	)
-	mysql? (
-		>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
-	)
-	postgres? (
-		>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
-		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
-	)
 	>=dev-python/sqlalchemy-migrate-0.13.0[${PYTHON_USEDEP}]
 	>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
 	>=dev-python/passlib-1.7.0[${PYTHON_USEDEP}]
@@ -69,16 +56,29 @@ RDEPEND="
 	>=dev-python/msgpack-0.5.0[${PYTHON_USEDEP}]
 	>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
 	>=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
+
+	ldap? (
+		>=dev-python/python-ldap-3.1.0[${PYTHON_USEDEP}]
+		>=dev-python/ldappool-2.3.1[${PYTHON_USEDEP}]
+	)
+	mysql? (
+		>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
+		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
+	)
 	memcached? (
 		>=dev-python/python-memcached-1.56[${PYTHON_USEDEP}]
 	)
 	mongo? (
 		>=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}]
 	)
-	ldap? (
-		>=dev-python/python-ldap-3.1.0[${PYTHON_USEDEP}]
-		>=dev-python/ldappool-2.3.1[${PYTHON_USEDEP}]
+	postgres? (
+		>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
+		>=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
 	)
+	sqlite? (
+		>=dev-python/sqlalchemy-1.3.0[sqlite,${PYTHON_USEDEP}]
+	)
+
 	|| (
 		www-servers/uwsgi[python,${PYTHON_USEDEP}]
 		www-apache/mod_wsgi[${PYTHON_USEDEP}]
@@ -87,9 +87,8 @@ RDEPEND="
 	acct-user/keystone
 	acct-group/keystone
 "
-DEPEND="
-	${RDEPEND}
-	>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
+DEPEND="${RDEPEND}"
+BDEPEND="
 	test? (
 		>=dev-python/bashate-0.5.1[${PYTHON_USEDEP}]
 		>=dev-python/freezegun-0.3.6[${PYTHON_USEDEP}]
@@ -105,6 +104,7 @@ DEPEND="
 	)
 "
 
+PATCHES=( "${FILESDIR}/${P}-no-usr-local-bin.patch" )
 REQUIRED_USE="
 	|| ( mysql postgres sqlite )
 	test? ( ldap )
@@ -113,32 +113,33 @@ REQUIRED_USE="
 distutils_enable_tests pytest
 
 python_prepare_all() {
-	# it's in git, but not in the tarball.....
 	sed -i '/^hacking/d' test-requirements.txt || die
-	mkdir -p ${PN}/tests/tmp/ || die
-	sed -i 's|/usr/local|/usr|g' httpd/keystone-uwsgi-* || die
-	sed -i 's|python|python27|g' httpd/keystone-uwsgi-* || die
-	# allow useage of renamed msgpack
+	# allow usage of renamed msgpack
 	sed -i '/^msgpack/d' requirements.txt || die
 	distutils-r1_python_prepare_all
 }
 
+python_compile_all() {
+	oslo-config-generator --config-file=config-generator/keystone.conf || die
+	oslopolicy-sample-generator --config-file config-generator/keystone-policy-generator.conf || die
+}
+
 python_install_all() {
 	distutils-r1_python_install_all
 
 	diropts -m 0750
 	keepdir /etc/keystone /var/log/keystone
 	insinto /etc/keystone
-	insopts -m0640 -okeystone -gkeystone
-	newins "${DISTDIR}/keystone.conf.sample-${PV}" keystone.conf.sample
+	insopts -m 0640 -o keystone -g keystone
+	doins etc/nova/keystone.conf.sample
+	doins etc/nova/policy.yaml.sample
 	doins etc/logging.conf.sample
 	doins etc/default_catalog.templates
-#	doins etc/policy.v3cloudsample.json
 	insinto /etc/keystone/httpd
 	doins httpd/*
 
 	fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone
-	# stupid python doing stupid things
+
 	rm -r "${ED}/usr/etc" || die
 }
 
@@ -153,10 +154,10 @@ pkg_postinst() {
 }
 
 pkg_config() {
-	if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then
+	if [ ! -d "${ROOT}/etc/keystone/ssl" ] ; then
 		einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..."
 		read
-		"${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
+		"${ROOT}/usr/bin/keystone-manage" pki_setup --keystone-user keystone --keystone-group keystone
 	else
 		einfo "keystone PKI certificates directory already present, skipping configuration"
 	fi


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-19 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 18:31 [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/keystone/, sys-auth/keystone/files/ Alessandro Barbieri
  -- strict thread matches above, loose matches on Subject: below --
2022-03-30 10:35 Alessandro Barbieri
2022-03-29 20:53 Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox