Skip to content

Commit

Permalink
Manage storage directories after intallation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smortex committed May 29, 2024
1 parent 3bbb8ed commit aa544e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/storage/device.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -60,6 +62,7 @@
group => $group,
mode => $device_mode,
seltype => $device_seltype,
require => Package[$bacula::storage::package_names],
}
}
}

0 comments on commit aa544e1

Please sign in to comment.