aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-03-30 12:22:30 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-03-30 12:26:30 +0200
commit9dd644c92d9feb00643d419dd516d1c8d3ff5d6d (patch)
tree47582173840437e02a76fc5dff173e527c95074d /sys-auth
parentsys-cluster/cinder: new version (diff)
downloadguru-9dd644c92d9feb00643d419dd516d1c8d3ff5d6d.tar.gz
guru-9dd644c92d9feb00643d419dd516d1c8d3ff5d6d.tar.bz2
guru-9dd644c92d9feb00643d419dd516d1c8d3ff5d6d.zip
sys-auth/keystone: logrotate and tmpfile
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/keystone/files/keystone.logrotate8
-rw-r--r--sys-auth/keystone/files/keystone.tmpfile1
-rw-r--r--sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild (renamed from sys-auth/keystone/keystone-21.0.0.0_rc1.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
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
}