Add template for generation of artibtrary module

One is for resource changing module, like server start or delete,
second one is for info collection about a specific resource.

Change-Id: I78b35075111731fff2fd50837fa4e6e0c61c55a0
This commit is contained in:
Sagi Shnaidman
2020-05-12 17:52:48 +03:00
parent 98ce765383
commit 5667600420
4 changed files with 345 additions and 0 deletions

5
contrib/generate_module.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# For resource changing module
ansible localhost -c local -m template -a "src=module_template.py.j2 dest=my_module.py" -e @module_template_vars.yaml
# For resource info collection module
ansible localhost -c local -m template -a "src=module_info_template.py.j2 dest=my_module_info.py" -e @module_template_vars.yaml