Minion key create/delete - reactors and orchestration pipelines
Change-Id: I07e86cb5d132a83b2460deda08b8a7e65f379d33
diff --git a/README.rst b/README.rst
index 7ec1dfd..80cd57d 100644
--- a/README.rst
+++ b/README.rst
@@ -189,7 +189,7 @@
salt-call event.send 'salt/minion/install'
-Run any orchestration pipeline
+Run any defined orchestration pipeline
.. code-block:: yaml
@@ -205,22 +205,39 @@
salt-call event.send 'salt/orchestrate/start' "{'orchestrate': 'salt/orchestrate/infra_install.sls'}"
-Classify node after start
+Add and/or remove the minion key
.. code-block:: yaml
salt:
master:
reactor:
- reclass/minion/classify:
- - salt://reclass/reactor/node_register.sls
+ salt/key/create:
+ - salt://salt/reactor/key_create.sls
+ salt/key/remove:
+ - salt://salt/reactor/key_remove.sls
-Event to trigger the node classification
+Event to trigger the key creation
.. code-block:: bash
- salt-call event.send 'reclass/minion/classify' "{'node_master_ip': '$config_host', 'node_ip': '${node_ip}', 'node_domain': '$node_domain', 'node_cluster': '$node_cluster', 'node_hostname': '$node_hostname', 'node_os': '$node_os'}"
+ salt-call event.send 'salt/key/create' "{'node_name': 'id-of-minion', 'orch_post_create': 'kubernetes/orchestrate/compute_install.sls'}"
+.. note::
+
+ You can add pass additional `orch_pre_create`, `orch_post_create`,
+ `orch_pre_remove` or `orch_post_remove` parameters to the event to call
+ extra orchestrate files. This can be useful for example for
+ registering/unregistering nodes from the monitoring alarms or dashboards.
+
+ The key creation event needs to be run from other machine than the one
+ being registered.
+
+Event to trigger the key removal
+
+.. code-block:: bash
+
+ salt-call event.send 'salt/key/remove'
Salt syndic
-----------