aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/definition-type
diff options
context:
space:
mode:
authorSerge Simard <serge@agilitae.com>2019-05-17 06:39:58 -0400
committerSerge Simard <serge@agilitae.com>2019-05-27 16:24:48 -0400
commita3d9ac859fa47f2aa2849160e08c7a3c1048589e (patch)
tree2274828bb493be8e9c59aa1ee1e502644d9909b0 /components/model-catalog/definition-type
parentacbcd280dc9d04ed303ed994872a0f3ba6adbab3 (diff)
Remote AWX ansible playbook executor
Issue-ID: CCSDK-1357 Change-Id: I794ce5450b341606829a1a37d9efed48abab32cc Signed-off-by: Serge Simard <serge@agilitae.com>
Diffstat (limited to 'components/model-catalog/definition-type')
-rw-r--r--components/model-catalog/definition-type/starter-type/node_type/component-remote-ansible-executor.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-remote-ansible-executor.json b/components/model-catalog/definition-type/starter-type/node_type/component-remote-ansible-executor.json
new file mode 100644
index 000000000..498db8246
--- /dev/null
+++ b/components/model-catalog/definition-type/starter-type/node_type/component-remote-ansible-executor.json
@@ -0,0 +1,65 @@
+{
+ "description": "This is Remote Ansible Playbook (AWX) Execution Component.",
+ "version": "1.0.0",
+ "attributes": {
+ "ansible-command-status": {
+ "required": true,
+ "type": "string"
+ },
+ "ansible-command-logs": {
+ "required": true,
+ "type": "string"
+ }
+ },
+ "capabilities": {
+ "component-node": {
+ "type": "tosca.capabilities.Node"
+ }
+ },
+ "interfaces": {
+ "ComponentRemoteAnsibleExecutor": {
+ "operations": {
+ "process": {
+ "inputs": {
+ "job-template-name": {
+ "description": "Primary key or name of the job template to launch new job.",
+ "required": true,
+ "type": "string"
+ },
+ "limit": {
+ "description": "Specify host limit for job template to run.",
+ "required": false,
+ "type": "string"
+ },
+ "inventory": {
+ "description": "Specify inventory for job template to run.",
+ "required": false,
+ "type": "string"
+ },
+ "extra-vars" : {
+ "required" : false,
+ "type" : "json",
+ "description": "json formatted text that contains extra variables to pass on."
+ },
+ "tags": {
+ "description": "Specify tagged actions in the playbook to run.",
+ "required": false,
+ "type": "string"
+ },
+ "skip-tags": {
+ "description": "Specify tagged actions in the playbook to omit.",
+ "required": false,
+ "type": "string"
+ },
+ "endpoint-selector": {
+ "description": "Remote AWX Server selector name.",
+ "required": true,
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "derived_from": "tosca.nodes.Component"
+} \ No newline at end of file