diff options
Diffstat (limited to 'templates/example')
-rw-r--r-- | templates/example/planet.xml | 2 | ||||
-rw-r--r-- | templates/example/worker.xml | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/templates/example/planet.xml b/templates/example/planet.xml index a252477..6c6b4bb 100644 --- a/templates/example/planet.xml +++ b/templates/example/planet.xml @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <planet name="{{ globals.name }}"> <manager name="{{ globals.name }}"> @@ -45,4 +46,3 @@ </flow> </planet> - diff --git a/templates/example/worker.xml b/templates/example/worker.xml new file mode 100644 index 0000000..cd9ee5c --- /dev/null +++ b/templates/example/worker.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<worker name="{{ name }}"> + <manager> +%% for name, value in globals.manager.items() +%% if name != 'machine' + <{{ name }}>{{ value }}</{{ name }}> +%% endif +%% endfor + </manager> + + <authentication type="plaintext"> + <username>{{ name }}</username> + <password>{{ password }}</password> + </authentication> + + <feederports>{{ portrange }}</feederports> +%% if debug != '' + <debug>{{ debug }}</debug> +%% endif +</worker> |