From aa544e1d00db5c7f2d35e671e7e553e7d0c90690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 28 May 2024 14:25:14 -1000 Subject: [PATCH] Manage storage directories after intallation When creating a storage directory, we want to set correct ownership for it but before the bacula-sd package is installed, the bacula user and group may not be available, resulting in a catalog appliaction failure. Explicitly require the storage daemon package to make sure the user/group are available when the directory is created. --- manifests/storage/device.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/storage/device.pp b/manifests/storage/device.pp index d332dcacc..aa8d297c5 100644 --- a/manifests/storage/device.pp +++ b/manifests/storage/device.pp @@ -36,6 +36,8 @@ String $director_name = $bacula::director_name, String $group = $bacula::bacula_group, ) { + include bacula::storage + $epp_device_variables = { device_name => $device_name, media_type => $media_type, @@ -60,6 +62,7 @@ group => $group, mode => $device_mode, seltype => $device_seltype, + require => Package[$bacula::storage::package_names], } } }