Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793422
init.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
init.sls
View Options
# -------------------------------------------------------------
# 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
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 21:45 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436536
Default Alt Text
init.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment