Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/saas-airflow/dags/init.sls b/roles/saas-airflow/dags/init.sls
index d041ce1..3639bff 100644
--- a/roles/saas-airflow/dags/init.sls
+++ b/roles/saas-airflow/dags/init.sls
@@ -1,36 +1,38 @@
# -------------------------------------------------------------
# Salt — Airflow
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Airflow DAGs composition
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% for realm, dags_to_import in pillar.get("airflow_pipelines", {}).items() %}
/srv/airflow/{{ realm }}/src:
file.directory
{% for name, args in dags_to_import.items() %}
{% set rev = args["source"].get("ref", "main") %}
{% set directory = args["source"].get("directory", "") %}
airflow_dags_{{ realm }}_{{ name }}_repo:
git.latest:
- name: {{ args["source"]["repository"] }}
- target: /srv/airflow/{{ realm }}/src/{{ name }}
- rev: {{ rev }}
+ - force_fetch: True
+ - force_reset: True
airflow_dags_{{ realm }}_{{ name }}:
file.copy:
- name: /srv/airflow/{{ realm }}/dags
- source: /srv/airflow/{{ realm }}/src/{{ name }}/{{ directory }}
- force: True
- user: 50000
{% endfor %}
{% endfor %}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 02:46 (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259391
Default Alt Text
(1 KB)

Event Timeline