Files
ansible-role-narratio/templates/pipeline.yml.j2

287 lines
14 KiB
Django/Jinja

{% if narratio_configkit_imports is not none %}
configkit:
imports: {{ narratio_configkit_imports | to_json }}
{% endif %}
workspace:
root: {{ narratio_workspace_root | to_json }}
{% if narratio_workspace_cleanup_after_publish is not none %}
cleanup_after_publish: {{ narratio_workspace_cleanup_after_publish | to_json }}
{% endif %}
campaigns:
root: {{ narratio_campaigns_root | to_json }}
{% if narratio_campaigns_default_campaign_id is not none %}
default_campaign_id: {{ narratio_campaigns_default_campaign_id | to_json }}
{% endif %}
{% if narratio_storage_backend is not none or narratio_storage_s3_bucket is not none or narratio_storage_s3_root_prefix is not none or narratio_storage_s3_region is not none or narratio_storage_s3_endpoint is not none or narratio_storage_s3_force_path_style is not none or narratio_storage_s3_access_key_id is not none or narratio_storage_s3_secret_access_key is not none %}
storage:
{% if narratio_storage_backend is not none %}
backend: {{ narratio_storage_backend | to_json }}
{% endif %}
{% if narratio_storage_s3_bucket is not none or narratio_storage_s3_root_prefix is not none or narratio_storage_s3_region is not none or narratio_storage_s3_endpoint is not none or narratio_storage_s3_force_path_style is not none or narratio_storage_s3_access_key_id is not none or narratio_storage_s3_secret_access_key is not none %}
s3:
{% if narratio_storage_s3_bucket is not none %}
bucket: {{ narratio_storage_s3_bucket | to_json }}
{% endif %}
{% if narratio_storage_s3_root_prefix is not none %}
root_prefix: {{ narratio_storage_s3_root_prefix | to_json }}
{% endif %}
{% if narratio_storage_s3_region is not none %}
region: {{ narratio_storage_s3_region | to_json }}
{% endif %}
{% if narratio_storage_s3_endpoint is not none %}
endpoint: {{ narratio_storage_s3_endpoint | to_json }}
{% endif %}
{% if narratio_storage_s3_force_path_style is not none %}
force_path_style: {{ narratio_storage_s3_force_path_style | to_json }}
{% endif %}
{% if narratio_storage_s3_access_key_id is not none %}
access_key_id: {{ narratio_storage_s3_access_key_id | to_json }}
{% endif %}
{% if narratio_storage_s3_secret_access_key is not none %}
secret_access_key: {{ narratio_storage_s3_secret_access_key | to_json }}
{% endif %}
{% endif %}
{% endif %}
spool:
root: {{ narratio_spool_root | to_json }}
{% if narratio_spool_delete_audio_after_publish is not none %}
delete_audio_after_publish: {{ narratio_spool_delete_audio_after_publish | to_json }}
{% endif %}
cache:
root: {{ narratio_cache_root | to_json }}
{% if narratio_cache_s3_audio is not none %}
s3_audio: {{ narratio_cache_s3_audio | to_json }}
{% endif %}
{% if narratio_publish_enabled is not none or narratio_publish_upload_run is not none or narratio_publish_outputs is not none %}
publish:
{% if narratio_publish_enabled is not none %}
enabled: {{ narratio_publish_enabled | to_json }}
{% endif %}
{% if narratio_publish_upload_run is not none %}
upload_run: {{ narratio_publish_upload_run | to_json }}
{% endif %}
{% if narratio_publish_outputs is not none %}
outputs: {{ narratio_publish_outputs | to_json }}
{% endif %}
{% endif %}
whisperx:
transcribe_url: {{ narratio_whisperx_transcribe_url | to_json }}
{% if narratio_whisperx_language is not none %}
language: {{ narratio_whisperx_language | to_json }}
{% endif %}
{% if narratio_whisperx_timeout is not none %}
timeout: {{ narratio_whisperx_timeout | to_json }}
{% endif %}
{% if narratio_whisperx_retries is not none %}
retries: {{ narratio_whisperx_retries | to_json }}
{% endif %}
{% if narratio_whisperx_retry_delay is not none %}
retry_delay: {{ narratio_whisperx_retry_delay | to_json }}
{% endif %}
{% if narratio_whisperx_concurrency is not none %}
concurrency: {{ narratio_whisperx_concurrency | to_json }}
{% endif %}
{% if narratio_seriatim_binary is not none or narratio_seriatim_timeout is not none or narratio_seriatim_output_schema is not none or narratio_seriatim_coalesce_gap is not none or narratio_seriatim_report is not none or narratio_seriatim_env_overlap_word_run_gap is not none or narratio_seriatim_env_overlap_word_run_reorder_window is not none or narratio_seriatim_env_backchannel_max_duration is not none or narratio_seriatim_env_filler_max_duration is not none %}
seriatim:
{% if narratio_seriatim_binary is not none %}
binary: {{ narratio_seriatim_binary | to_json }}
{% endif %}
{% if narratio_seriatim_timeout is not none %}
timeout: {{ narratio_seriatim_timeout | to_json }}
{% endif %}
{% if narratio_seriatim_output_schema is not none %}
output_schema: {{ narratio_seriatim_output_schema | to_json }}
{% endif %}
{% if narratio_seriatim_coalesce_gap is not none %}
coalesce_gap: {{ narratio_seriatim_coalesce_gap | to_json }}
{% endif %}
{% if narratio_seriatim_report is not none %}
report: {{ narratio_seriatim_report | to_json }}
{% endif %}
{% if narratio_seriatim_env_overlap_word_run_gap is not none or narratio_seriatim_env_overlap_word_run_reorder_window is not none or narratio_seriatim_env_backchannel_max_duration is not none or narratio_seriatim_env_filler_max_duration is not none %}
env:
{% if narratio_seriatim_env_overlap_word_run_gap is not none %}
overlap_word_run_gap: {{ narratio_seriatim_env_overlap_word_run_gap | to_json }}
{% endif %}
{% if narratio_seriatim_env_overlap_word_run_reorder_window is not none %}
overlap_word_run_reorder_window: {{ narratio_seriatim_env_overlap_word_run_reorder_window | to_json }}
{% endif %}
{% if narratio_seriatim_env_backchannel_max_duration is not none %}
backchannel_max_duration: {{ narratio_seriatim_env_backchannel_max_duration | to_json }}
{% endif %}
{% if narratio_seriatim_env_filler_max_duration is not none %}
filler_max_duration: {{ narratio_seriatim_env_filler_max_duration | to_json }}
{% endif %}
{% endif %}
{% endif %}
{% if narratio_audita_binary is not none or narratio_audita_timeout is not none or narratio_audita_credentials is not none or narratio_audita_modules is not none or narratio_audita_overlay is not none or narratio_audita_proposal_profile is not none or narratio_audita_validation_profile is not none or narratio_audita_transcript_description is not none or narratio_audita_config_path is not none or narratio_audita_output_schema is not none %}
audita:
{% if narratio_audita_binary is not none %}
binary: {{ narratio_audita_binary | to_json }}
{% endif %}
{% if narratio_audita_timeout is not none %}
timeout: {{ narratio_audita_timeout | to_json }}
{% endif %}
{% if narratio_audita_credentials is not none %}
credentials: {{ narratio_audita_credentials | to_json }}
{% endif %}
{% if narratio_audita_modules is not none %}
modules: {{ narratio_audita_modules | to_json }}
{% endif %}
{% if narratio_audita_overlay is not none %}
overlay: {{ narratio_audita_overlay | to_json }}
{% endif %}
{% if narratio_audita_proposal_profile is not none %}
proposal_profile: {{ narratio_audita_proposal_profile | to_json }}
{% endif %}
{% if narratio_audita_validation_profile is not none %}
validation_profile: {{ narratio_audita_validation_profile | to_json }}
{% endif %}
{% if narratio_audita_transcript_description is not none %}
transcript_description: {{ narratio_audita_transcript_description | to_json }}
{% endif %}
{% if narratio_audita_config_path is not none %}
config_path: {{ narratio_audita_config_path | to_json }}
{% endif %}
{% if narratio_audita_output_schema is not none %}
output_schema: {{ narratio_audita_output_schema | to_json }}
{% endif %}
{% endif %}
{% if narratio_normalize_output_path is not none or narratio_normalize_output_schema is not none or narratio_normalize_report is not none %}
normalize:
{% if narratio_normalize_output_path is not none %}
output_path: {{ narratio_normalize_output_path | to_json }}
{% endif %}
{% if narratio_normalize_output_schema is not none %}
output_schema: {{ narratio_normalize_output_schema | to_json }}
{% endif %}
{% if narratio_normalize_report is not none %}
report: {{ narratio_normalize_report | to_json }}
{% endif %}
{% endif %}
{% if narratio_trim_enabled is not none or narratio_trim_output_path is not none or narratio_trim_bounds_prompt_id is not none or narratio_trim_bounds_profile_id is not none or narratio_trim_bounds_transcript_input_name is not none or narratio_trim_bounds_output_path is not none or narratio_trim_bounds_timeout is not none or narratio_trim_bounds_render_debug is not none or narratio_trim_bounds_render_output_path is not none or narratio_trim_seriatim_report is not none %}
trim:
{% if narratio_trim_enabled is not none %}
enabled: {{ narratio_trim_enabled | to_json }}
{% endif %}
{% if narratio_trim_output_path is not none %}
output_path: {{ narratio_trim_output_path | to_json }}
{% endif %}
{% if narratio_trim_bounds_prompt_id is not none or narratio_trim_bounds_profile_id is not none or narratio_trim_bounds_transcript_input_name is not none or narratio_trim_bounds_output_path is not none or narratio_trim_bounds_timeout is not none or narratio_trim_bounds_render_debug is not none or narratio_trim_bounds_render_output_path is not none %}
bounds:
{% if narratio_trim_bounds_prompt_id is not none %}
prompt_id: {{ narratio_trim_bounds_prompt_id | to_json }}
{% endif %}
{% if narratio_trim_bounds_profile_id is not none %}
profile_id: {{ narratio_trim_bounds_profile_id | to_json }}
{% endif %}
{% if narratio_trim_bounds_transcript_input_name is not none %}
transcript_input_name: {{ narratio_trim_bounds_transcript_input_name | to_json }}
{% endif %}
{% if narratio_trim_bounds_output_path is not none %}
output_path: {{ narratio_trim_bounds_output_path | to_json }}
{% endif %}
{% if narratio_trim_bounds_timeout is not none %}
timeout: {{ narratio_trim_bounds_timeout | to_json }}
{% endif %}
{% if narratio_trim_bounds_render_debug is not none %}
render_debug: {{ narratio_trim_bounds_render_debug | to_json }}
{% endif %}
{% if narratio_trim_bounds_render_output_path is not none %}
render_output_path: {{ narratio_trim_bounds_render_output_path | to_json }}
{% endif %}
{% endif %}
{% if narratio_trim_seriatim_report is not none %}
seriatim:
report: {{ narratio_trim_seriatim_report | to_json }}
{% endif %}
{% endif %}
{% if narratio_render_enabled is not none or narratio_render_format is not none or narratio_render_title is not none or narratio_render_include_timestamps is not none or narratio_render_include_segment_ids is not none or narratio_render_include_metadata is not none %}
render:
{% if narratio_render_enabled is not none %}
enabled: {{ narratio_render_enabled | to_json }}
{% endif %}
{% if narratio_render_format is not none %}
format: {{ narratio_render_format | to_json }}
{% endif %}
{% if narratio_render_title is not none %}
title: {{ narratio_render_title | to_json }}
{% endif %}
{% if narratio_render_include_timestamps is not none %}
include_timestamps: {{ narratio_render_include_timestamps | to_json }}
{% endif %}
{% if narratio_render_include_segment_ids is not none %}
include_segment_ids: {{ narratio_render_include_segment_ids | to_json }}
{% endif %}
{% if narratio_render_include_metadata is not none %}
include_metadata: {{ narratio_render_include_metadata | to_json }}
{% endif %}
{% endif %}
{% if narratio_scriptorium_binary is not none or narratio_scriptorium_credentials is not none or narratio_scriptorium_config_path is not none or narratio_scriptorium_timeout is not none or narratio_scriptorium_render_debug is not none or narratio_scriptorium_artifacts is not none or narratio_scriptorium_artifact_families is not none %}
scriptorium:
{% if narratio_scriptorium_binary is not none %}
binary: {{ narratio_scriptorium_binary | to_json }}
{% endif %}
{% if narratio_scriptorium_credentials is not none %}
credentials: {{ narratio_scriptorium_credentials | to_json }}
{% endif %}
{% if narratio_scriptorium_config_path is not none %}
config_path: {{ narratio_scriptorium_config_path | to_json }}
{% endif %}
{% if narratio_scriptorium_timeout is not none %}
timeout: {{ narratio_scriptorium_timeout | to_json }}
{% endif %}
{% if narratio_scriptorium_render_debug is not none %}
render_debug: {{ narratio_scriptorium_render_debug | to_json }}
{% endif %}
{% if narratio_scriptorium_artifacts is not none %}
artifacts: {{ narratio_scriptorium_artifacts | to_json }}
{% endif %}
{% if narratio_scriptorium_artifact_families is not none %}
artifact_families: {{ narratio_scriptorium_artifact_families | to_json }}
{% endif %}
{% endif %}
{% if narratio_notarius_enabled is not none or narratio_notarius_binary is not none or narratio_notarius_config_path is not none or narratio_notarius_config_overlay is not none or narratio_notarius_pipeline_id is not none or narratio_notarius_timeout is not none or narratio_notarius_working_directory is not none or narratio_notarius_credentials is not none or narratio_notarius_resume is not none or narratio_notarius_chunk_cache is not none or narratio_notarius_references is not none or narratio_notarius_outputs is not none %}
notarius:
{% if narratio_notarius_enabled is not none %}
enabled: {{ narratio_notarius_enabled | to_json }}
{% endif %}
{% if narratio_notarius_binary is not none %}
binary: {{ narratio_notarius_binary | to_json }}
{% endif %}
{% if narratio_notarius_config_path is not none %}
config_path: {{ narratio_notarius_config_path | to_json }}
{% endif %}
{% if narratio_notarius_config_overlay is not none %}
config_overlay: {{ narratio_notarius_config_overlay | to_json }}
{% endif %}
{% if narratio_notarius_pipeline_id is not none %}
pipeline_id: {{ narratio_notarius_pipeline_id | to_json }}
{% endif %}
{% if narratio_notarius_timeout is not none %}
timeout: {{ narratio_notarius_timeout | to_json }}
{% endif %}
{% if narratio_notarius_working_directory is not none %}
working_directory: {{ narratio_notarius_working_directory | to_json }}
{% endif %}
{% if narratio_notarius_credentials is not none %}
credentials: {{ narratio_notarius_credentials | to_json }}
{% endif %}
{% if narratio_notarius_resume is not none %}
resume: {{ narratio_notarius_resume | to_json }}
{% endif %}
{% if narratio_notarius_chunk_cache is not none %}
chunk_cache: {{ narratio_notarius_chunk_cache | to_json }}
{% endif %}
{% if narratio_notarius_references is not none %}
references: {{ narratio_notarius_references | to_json }}
{% endif %}
{% if narratio_notarius_outputs is not none %}
outputs: {{ narratio_notarius_outputs | to_json }}
{% endif %}
{% endif %}
{% if narratio_notification_mode is not none %}
notification:
mode: {{ narratio_notification_mode | to_json }}
{% endif %}