Skip to content

Commit 244fb5a

Browse files
committed
Add basic ansible provision system control
1 parent ac4a28b commit 244fb5a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

documentation/docs/content/Customization/provisioning.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,36 @@ For customization just add your shell scripts into these directories for the sim
3434

3535
Ansible provision
3636
-----------------
37+
38+
For Ansible the provision events are available as tags. The roles are located inside ``/opt/docker/provision/roles/``
39+
and must be registred with the provision system:
40+
41+
.. code-block:: bash
42+
43+
/opt/docker/bin/provision add --tag bootstrap my-own-role
44+
45+
46+
Multiple tags can be defined with multiple ``--tag`` options:
47+
48+
.. code-block:: bash
49+
50+
/opt/docker/bin/provision add --tag bootstrap --tag build my-own-role
51+
52+
There is a pritory system for roles in which order they should be executed, default priority is 100:
53+
54+
.. code-block:: bash
55+
56+
## run before
57+
/opt/docker/bin/provision add --tag bootstrap --priority 40 my-own-role-first
58+
59+
## run with normal priority
60+
/opt/docker/bin/provision add --tag bootstrap my-own-role
61+
62+
## run after
63+
/opt/docker/bin/provision add --tag bootstrap --priority 200 my-own-role-last
64+
65+
It's also possible to run one role with the provision command:
66+
67+
.. code-block:: bash
68+
69+
/opt/docker/bin/provision run --tag bootstrap my-own-role

0 commit comments

Comments
 (0)