thehyve/puppet-i2b2

View on GitHub
manifests/cell_schemas/ontology.pp

Summary

Maintainability
Test Coverage
define i2b2::cell_schemas::ontology(
  $db_user,
  $db_password,
  $demo_data = false,
) {
  $additional_targets = $demo_data ? {
    true    => ['db_metadata_load_data'],
    default => [],
  }

  i2b2::cell_schemas::common { "ontology-$name":
    ant_script_dir     => 'Metadata',
    database_user      => $db_user,
    database_password  => $db_password,
    target_infix       => 'metadata',
    additional_targets => $additional_targets,
  }
}