diff --git a/roles/bin/templates/bin/smi-update-values b/roles/bin/templates/bin/smi-update-values new file mode 100755 index 0000000..167fbe7 --- /dev/null +++ b/roles/bin/templates/bin/smi-update-values @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 +# {{ ansible_managed }} +import os + +import _smi_wrapper as wrapper + +wrapper.run_smiservices( + os.environ["SMI_SMISERVICES_INGEST_PIPELINE_CONFIG"], +) diff --git a/roles/envs/templates/example/env.bash b/roles/envs/templates/example/env.bash index cf79125..d803657 100644 --- a/roles/envs/templates/example/env.bash +++ b/roles/envs/templates/example/env.bash @@ -3,5 +3,6 @@ export SMI_SMISERVICES_VERSION="v5.6.1" export SMI_SMISERVICES_BIN="{{ envs_smi_root_dir }}/software/SMI/SmiServices/${SMI_SMISERVICES_VERSION}/smi/smi" +export SMI_SMISERVICES_INGEST_PIPELINE_CONFIG="smi-services-ingest-pipeline.yaml" export SMI_SMISERVICES_EXTRACT_PIPELINE_CONFIG="smi-services-extract-pipeline.yaml" export SMI_SMISERVICES_CTP_JAR="{{ envs_smi_root_dir }}/software/SMI/SmiServices/${SMI_SMISERVICES_VERSION}/CTPAnonymiser.jar"