1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
{
"tosca_definitions_version": "controller_blueprint_1_0_0",
"metadata": {
"template_author": "Serge Simard",
"author-email": "serge@agilitae.com",
"user-groups": "ADMIN, OPERATION",
"template_name": "remote_ansible",
"template_version": "1.0.0",
"template_tags": "tosca"
},
"imports": [
{
"file": "Definitions/data_types.json"
},
{
"file": "Definitions/relationship_types.json"
},
{
"file": "Definitions/artifact_types.json"
},
{
"file": "Definitions/node_types.json"
},
{
"file": "Definitions/policy_types.json"
}
],
"dsl_definitions": {
"ansible-remote-endpoint": {
"type": "token-auth",
"url": "http://142.44.184.236",
"token": "Bearer J9gEtMDqf7P4YsJ74fioY9VAhLDIs1"
}
},
"topology_template": {
"workflows": {
"execute-remote-ansible": {
"steps": {
"process": {
"description": "Execute Remote Ansible Script",
"target": "execute-remote-ansible",
"activities": [
{
"call_operation": ""
}
]
}
},
"inputs": {
"endpoint-selector": {
"required": true,
"type": "string"
},
"job-template-name": {
"required": true,
"type": "string"
},
"limit": {
"required": false,
"type": "string"
},
"inventory": {
"required": false,
"type": "string"
},
"tags": {
"required": false,
"type": "string"
},
"skip-tags": {
"required": false,
"type": "string"
},
"extra-vars" : {
"required" : false,
"type" : "json"
}
},
"outputs": {
"ansible-command-status": {
"type": "string",
"value": {
"get_attribute": [
"execute-remote-ansible",
"ansible-command-status"
]
}
},
"ansible-command-logs": {
"type": "string",
"value": {
"get_attribute": [
"execute-remote-ansible",
"ansible-command-logs"
]
}
}
}
}
},
"node_templates": {
"execute-remote-ansible": {
"type": "component-remote-ansible-executor",
"interfaces": {
"ComponentRemoteAnsibleExecutor": {
"operations": {
"process": {
"inputs": {
"endpoint-selector": { "get_input": "endpoint-selector" },
"job-template-name": { "get_input": "job-template-name" },
"limit": { "get_input": "limit" },
"inventory": { "get_input": "inventory" },
"extra-vars": { "get_input": "extra-vars" },
"tags": { "get_input": "tags" },
"skip-tags": { "get_input": "skip-tags" }
}
}
}
}
}
}
}
}
}
|