-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Contents: | |
info/index | ||
running/index | ||
scheduler/index | ||
render/index | ||
deploy-tutorial | ||
changelog | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Render Commands | ||
=============== | ||
|
||
|
||
Condition | ||
--------- | ||
|
||
Condition is a special command that executes other commands only if some | ||
condition happens. | ||
|
||
Example: | ||
|
||
.. code-block: yaml | ||
templates: | ||
nginx: nginx.conf.trm | ||
commands: | ||
- !Copy | ||
src: "{{ templates.nginx }}" | ||
target: /etc/nginx/nginx.conf | ||
- !Condition | ||
dirs-changed: [/etc/nginx] | ||
commands: | ||
- !RootCommand [pkill, -HUP, nginx] | ||
Conditions: | ||
|
||
``dirs-changed`` | ||
Calculates hash of all files in the directory recursively at the beginning | ||
of the **processing this .render.yaml** file. Then the hashsum is checked | ||
again when ``!Condition`` is encountered and if hashsum changed | ||
``commands`` are executed, otherwise they are silently skipped. | ||
|
||
Options: | ||
|
||
``commands`` | ||
List of commands to execute when condition is true. All the same commands | ||
suported except the ``!Condition`` itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Writing Renderers | ||
================= | ||
|
||
Renderer is a subsystem that executes all necessary steps to apply | ||
verwalter schedule/configuration on each machine | ||
|
||
Contents: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
commands |