Storage {
  Name                    = <%= fqdn %>-sd
  WorkingDirectory        = <%= working_directory %>
  Pid Directory           = <%= pid_directory %>
  SDPort                  = <%= port %>
}

Device {
  Name           = <%= device_name %>
  Media Type     = <%= media_type %>
  Archive Device = <%= device %>
  LabelMedia     = yes; # lets Bacula label unlabeled media
  Random Access  = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen     = no;
}

# Send all messages to the Director,
Messages {
  Name     = Standard
  director = <%= bacula_director %>-dir = all
  syslog   = all, !skipped
  #append   = "/var/log/bacula/log" = all, !skipped
}


Storage {
  Name                    = <%= fqdn %>-sd
  WorkingDirectory        = <%= working_directory %>
  Pid Directory           = <%= pid_directory %>
  SDPort                  = <%= scope.lookupvar('bacula::params::storage_port') %>
}

Device {
  Name           = <%= device_name %>
  Media Type     = <%= media_type %>
  Archive Device = <%= device %>
  LabelMedia     = yes; # lets Bacula label unlabeled media
  Random Access  = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen     = no;
}

# Send all messages to the Director,
Messages {
  Name     = Standard
  director = <%= bacula_director %>-dir = all
  syslog   = all, !skipped
  #append   = "/var/log/bacula/log" = all, !skipped
}


Use params class for bacula storage port
Use params class for bacula storage port
