-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tmpfiles.d for rgw: templated user and group.
tmpfiles.d are part of system.d and define how temporary directories are setup. rgw needs a socket directory. To do this we template tmpfiles.d user and group for rgw and fill in the values using autotools. Note1: Added to spec file. Note2: Name changed to rgw from radosgw as is preferred name by Sage. Note3: Adds configure options --with-rgw-user=UserName --with-rgw-group=GroupName Note4: Defaults set for debian Note5: spec file overrides defaults for redhat and suse Signed-off-by: Owen Synge <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ py-compile | |
release | ||
stamp-h1 | ||
systemd/[email protected] | ||
systemd/ceph-rgw.tmpfiles.d | ||
vgcore.* | ||
|
||
# specific local dir files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1197,6 +1197,50 @@ AC_ARG_WITH( | |
] | ||
) | ||
|
||
dnl rgw-user | ||
AC_SUBST(user_rgw) | ||
AC_ARG_WITH( | ||
rgw-user, | ||
AS_HELP_STRING( | ||
[--with-rgw-user=USER], | ||
[systemd unit directory @<:@USER_RGW@:>@ | ||
Defaults to "www-data"] | ||
), | ||
[ | ||
user_rgw="$withval" | ||
], | ||
[ | ||
if test "x$USER_RGW" = "x"; then | ||
user_rgw=www-data | ||
else | ||
user_rgw="$USER_RGW" | ||
fi | ||
] | ||
) | ||
|
||
|
||
dnl rgw-group | ||
AC_SUBST(group_rgw) | ||
AC_ARG_WITH( | ||
rgw-group, | ||
AS_HELP_STRING( | ||
[--with-rgw-group=GROUP], | ||
[systemd unit directory @<:@GROUP_RGW@:>@ | ||
Defaults to "www-data"] | ||
), | ||
[ | ||
group_rgw="$withval" | ||
], | ||
[ | ||
if test "x$GROUP_RGW" = "x"; then | ||
group_rgw=www-data | ||
else | ||
group_rgw="$GROUP_RGW" | ||
fi | ||
] | ||
) | ||
|
||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
#AC_HEADER_STDBOOL | ||
#AC_C_CONST | ||
|
@@ -1260,5 +1304,6 @@ AC_CONFIG_FILES([Makefile | |
man/Makefile | ||
doc/Makefile | ||
systemd/[email protected] | ||
systemd/ceph-rgw.tmpfiles.d | ||
ceph.spec]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# create rgw socket directory | ||
d /var/run/ceph-rgw 0755 @user_rgw@ @group_rgw@ - - |