Skip to content

Commit b5d1629

Browse files
committed
tarsnap: don't try to create a directory if parent does not exist
1 parent 3e5ae73 commit b5d1629

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/tarsnap/manifests/init.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@
5656
mode => '0554',
5757
}
5858

59+
File <| tag == 'tarsnap' |>
5960
Systemd::Timer <| tag == 'tarsnap::backup' |>
6061
}

modules/tarsnap/manifests/mariadb.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
],
2222
}
2323

24-
file { '/var/lib/backup/mariadb':
24+
@file { '/var/lib/backup/mariadb':
2525
ensure => directory,
2626
owner => 'tarsnap',
2727
group => 'tarsnap',
2828
mode => '0755',
29+
tag => 'tarsnap',
2930
}
3031

3132
file { '/usr/local/bin/jq-tarsnap-dump-mariadb':

0 commit comments

Comments
 (0)