1 |
commit: 9dd644c92d9feb00643d419dd516d1c8d3ff5d6d |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Mar 30 10:22:30 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Mar 30 10:26:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9dd644c9 |
7 |
|
8 |
sys-auth/keystone: logrotate and tmpfile |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-auth/keystone/files/keystone.logrotate | 8 ++++++++ |
13 |
sys-auth/keystone/files/keystone.tmpfile | 1 + |
14 |
...ne-21.0.0.0_rc1.ebuild => keystone-21.0.0.0_rc1-r1.ebuild} | 11 ++++++++--- |
15 |
3 files changed, 17 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sys-auth/keystone/files/keystone.logrotate b/sys-auth/keystone/files/keystone.logrotate |
18 |
new file mode 100644 |
19 |
index 000000000..2709c72aa |
20 |
--- /dev/null |
21 |
+++ b/sys-auth/keystone/files/keystone.logrotate |
22 |
@@ -0,0 +1,8 @@ |
23 |
+/var/log/keystone/*.log { |
24 |
+ daily |
25 |
+ missingok |
26 |
+ rotate 5 |
27 |
+ compress |
28 |
+ minsize 100k |
29 |
+ copytruncate |
30 |
+} |
31 |
\ No newline at end of file |
32 |
|
33 |
diff --git a/sys-auth/keystone/files/keystone.tmpfile b/sys-auth/keystone/files/keystone.tmpfile |
34 |
new file mode 100644 |
35 |
index 000000000..70745ce2f |
36 |
--- /dev/null |
37 |
+++ b/sys-auth/keystone/files/keystone.tmpfile |
38 |
@@ -0,0 +1 @@ |
39 |
+d /run/keystone 0755 keystone keystone - |
40 |
|
41 |
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 |
42 |
similarity index 95% |
43 |
rename from sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild |
44 |
rename to sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild |
45 |
index 715dc5765..662dd4ae7 100644 |
46 |
--- a/sys-auth/keystone/keystone-21.0.0.0_rc1.ebuild |
47 |
+++ b/sys-auth/keystone/keystone-21.0.0.0_rc1-r1.ebuild |
48 |
@@ -6,7 +6,7 @@ EAPI=8 |
49 |
MYP="${P/_/}" |
50 |
PYTHON_COMPAT=( python3_{8..9} ) |
51 |
|
52 |
-inherit distutils-r1 |
53 |
+inherit distutils-r1 tmpfiles |
54 |
|
55 |
DESCRIPTION="The Openstack authentication, authorization, and service catalog" |
56 |
HOMEPAGE=" |
57 |
@@ -131,8 +131,8 @@ python_install_all() { |
58 |
keepdir /etc/keystone /var/log/keystone |
59 |
insinto /etc/keystone |
60 |
insopts -m 0640 -o keystone -g keystone |
61 |
- doins etc/nova/keystone.conf.sample |
62 |
- doins etc/nova/policy.yaml.sample |
63 |
+ doins etc/keystone.conf.sample |
64 |
+ doins etc/keystone.policy.yaml.sample |
65 |
doins etc/logging.conf.sample |
66 |
doins etc/default_catalog.templates |
67 |
insinto /etc/keystone/httpd |
68 |
@@ -140,6 +140,11 @@ python_install_all() { |
69 |
|
70 |
fowners keystone:keystone /etc/keystone /etc/keystone/httpd /var/log/keystone |
71 |
|
72 |
+ newtmpfiles "${FILESDIR}/keystone.tmpfile" keystone.conf |
73 |
+ |
74 |
+ insinto /etc/logrotate.d |
75 |
+ newins "${FILESDIR}/keystone.logrotate" keystone.conf |
76 |
+ |
77 |
rm -r "${ED}/usr/etc" || die |
78 |
} |