mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
sys-auth/keystone: logrotate and tmpfile
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
parent
e62b628b18
commit
9dd644c92d
8
sys-auth/keystone/files/keystone.logrotate
Normal file
8
sys-auth/keystone/files/keystone.logrotate
Normal file
@ -0,0 +1,8 @@
|
||||
/var/log/keystone/*.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 5
|
||||
compress
|
||||
minsize 100k
|
||||
copytruncate
|
||||
}
|
1
sys-auth/keystone/files/keystone.tmpfile
Normal file
1
sys-auth/keystone/files/keystone.tmpfile
Normal file
@ -0,0 +1 @@
|
||||
d /run/keystone 0755 keystone keystone -
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user