Add switch to manage File[/var/run/redis] #204
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The existence of /var/run/redis causes the startup of redis-server via
systemd to fail on debian systems with redis-server >= 3.2.8-2.
The default unit file for redis-server in debian jessie-backports
contains
RuntimeDirectory=redis
, see this commit.This causes systemd to attempt to create
/var/run/redis
, which fails,since puppet already created it:
Additionally the
$var_run_redis_mode
is wrong as well, since redis-serversets it to
0755
and the module changes it back to2755
.Also see issue #150, the same applies here - puppet changes the mode of
/var/run/dir
and refreshesService[redis-server]
, which then failsto restart because systemd can't create the directory.