mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-12-16 09:40:35 +00:00
create /etc/tmpfiles.d dir on OS without systemd
This commit is contained in:
parent
063df85094
commit
a774e8b360
@ -14,6 +14,10 @@ class rsnapshot::install {
|
|||||||
$lockpath = pick($rsnapshot::lockpath, $rsnapshot::params::config_lockpath, '/var/run/rsnapshot')
|
$lockpath = pick($rsnapshot::lockpath, $rsnapshot::params::config_lockpath, '/var/run/rsnapshot')
|
||||||
$tmpfiles_d = '/etc/tmpfiles.d'
|
$tmpfiles_d = '/etc/tmpfiles.d'
|
||||||
|
|
||||||
|
file { "${tmpfiles_d}":
|
||||||
|
ensure => directory,
|
||||||
|
}
|
||||||
|
|
||||||
file { "${tmpfiles_d}/rsnapshot.conf":
|
file { "${tmpfiles_d}/rsnapshot.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => "D ${lockpath} 0755 root root -",
|
content => "D ${lockpath} 0755 root root -",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "loomsen-rsnapshot",
|
"name": "loomsen-rsnapshot",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"author": "loomsen",
|
"author": "loomsen",
|
||||||
"summary": "Configures rsnapshot.",
|
"summary": "Configures rsnapshot.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user