Page MenuHomeDevCentral

D3280.diff
No OneTemporary

D3280.diff

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

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)

Event Timeline