Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764076
D3280.diff
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
D3280.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -73,6 +73,9 @@
E. Units and integration tests are stored in `_tests/`
+F. Actions can be triggered in response to an event through Salt Reactor.
+Those files are stored to the `reactor/` directory.
+
Contribute
----------
diff --git a/reactor/deploy/datasources.sls b/reactor/deploy/datasources.sls
new file mode 100644
--- /dev/null
+++ b/reactor/deploy/datasources.sls
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt :: Reactor :: Deploy :: nasqueron-datasources
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# DAG
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+salt/netapi/hook/deploy/nasqueron-datasources/dags:
+ local.state.apply:
+ - arg: roles/saas-airflow/dags
+ - tgt: 'roles:saas-airflow'
+ - tgt_type: grain
diff --git a/reactor/reactor.conf b/reactor/reactor.conf
new file mode 100644
--- /dev/null
+++ b/reactor/reactor.conf
@@ -0,0 +1,15 @@
+# -------------------------------------------------------------
+# Salt :: Reactor
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+reactor:
+
+# -------------------------------------------------------------
+# Deployment triggered from Rest API
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+ - salt/netapi/hook/deploy/nasqueron-datasources/dags:
+ - salt://reactor/deploy/datasources.sls
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 04:08 (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257091
Default Alt Text
D3280.diff (1 KB)
Attached To
Mode
D3280: Configure Salt reactor to provision Airflow pipeline for datasources
Attached
Detach File
Event Timeline
Log In to Comment