From a774e8b36099148c27f051b6278a3797c556af64 Mon Sep 17 00:00:00 2001 From: Norbert Varzariu Date: Mon, 24 Apr 2017 20:43:49 +0200 Subject: [PATCH] create /etc/tmpfiles.d dir on OS without systemd --- manifests/install.pp | 6 +++++- metadata.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index b0674e3..006324e 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -13,7 +13,11 @@ class rsnapshot::install { # ensure run directory exists (systemd clears /var/run, so rsnapshot can't create PID files after reboot - issue#12) $lockpath = pick($rsnapshot::lockpath, $rsnapshot::params::config_lockpath, '/var/run/rsnapshot') $tmpfiles_d = '/etc/tmpfiles.d' - + + file { "${tmpfiles_d}": + ensure => directory, + } + file { "${tmpfiles_d}/rsnapshot.conf": ensure => present, content => "D ${lockpath} 0755 root root -", diff --git a/metadata.json b/metadata.json index 2e9104c..62f7daf 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "loomsen-rsnapshot", - "version": "1.2.2", + "version": "1.2.3", "author": "loomsen", "summary": "Configures rsnapshot.", "license": "Apache-2.0",