use a resource default with variables taken from parameters

File {
  owner => $dir_owner,
  group => $dir_group,
  mode => $dir_mode,
}