This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
-
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.
Thanks to the commenters in https://blog.hqcodeshop.fi/archives/93-Handling-varrun-with-systemd.html for pointing me at tmpfiles.d. This change is to install an override file which sets the desired ownership (shinken:shinken) for /var/run/shinken .
- Loading branch information
Showing
3 changed files
with
20 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
|
||
- name: Check if /etc/tmpfiles.d exists (are we using systemd?) | ||
stat: | ||
path: /etc/tmpfiles.d | ||
register: destination_exists | ||
|
||
- name: Install permissions override for [/var]/run/shinken | ||
template: | ||
dest: /etc/tmpfiles.d/run-shinken.conf | ||
src: run-shinken-permissions.conf.tmpl | ||
when: destination_exists.stat.isdir is defined and destination_exists.stat.isdir | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# {{ ansible_managed }} | ||
# Set custom directory permissions | ||
D /run/shinken 0755 shinken shinken | ||
D /var/run/shinken 0755 shinken shinken | ||
|