2 "tosca_definitions_version": "controller_blueprint_1_0_0",
4 "template_author": "Brinda Santh Muthuramalingam",
5 "author-email": "brindasanth@in.ibm.com",
6 "user-groups": "ADMIN, OPERATION",
7 "template_name": "remote_scripts",
8 "template_version": "1.0.0",
9 "template_tags": "brinda, tosca"
13 "file": "Definitions/data_types.json"
16 "file": "Definitions/relationship_types.json"
19 "file": "Definitions/artifact_types.json"
22 "file": "Definitions/node_types.json"
25 "file": "Definitions/policy_types.json"
29 "remote-argument-properties": {
34 "ansible-argument-properties": {
36 "arg1": "Scripts/ansible/inventory.yaml",
37 "arg2": "--extra-vars",
40 "resolve-ansible-vars",
48 "topology_template": {
50 "execute-remote-python": {
53 "description": "Execute Remote Python Script",
54 "target": "execute-remote-python",
69 "prepare-environment-logs": {
73 "execute-remote-python",
74 "prepare-environment-logs"
78 "execute-command-logs": {
82 "execute-remote-python",
83 "execute-command-logs"
87 "execute-command-status": {
89 "value": { "get_attribute": ["execute-remote-python", "status"]}
91 "execute-command-payload": {
93 "value": { "get_attribute": ["execute-remote-python", "response-data"]}
97 "execute-remote-ansible": {
100 "description": "Execute Remote Ansible Script",
101 "target": "execute-remote-ansible-process",
122 "execute-remote-ansible-properties": {
123 "description": "Dynamic PropertyDefinition for workflow(execute-remote-ansible).",
125 "type": "dt-execute-remote-ansible-properties"
129 "ansible-variable-resolution": {
133 "resolve-ansible-vars",
138 "prepare-environment-logs": {
142 "execute-remote-ansible",
143 "prepare-environment-logs"
147 "execute-command-logs": {
151 "execute-remote-ansible",
152 "execute-command-logs"
160 "execute-remote-python": {
161 "type": "component-remote-python-executor",
163 "ComponentRemotePythonExecutor": {
167 "primary": "component-script"
170 "command": "python SamplePython.py",
179 "argument-properties": "*remote-argument-properties"
186 "component-script": {
187 "type": "artifact-script-python",
188 "file": "Scripts/python/SamplePython.py"
192 "execute-remote-ansible-process": {
193 "type": "dg-generic",
198 "dg-execute-remote-ansible-process"
201 "dependency-node-templates": [
202 "resolve-ansible-vars",
203 "execute-remote-ansible"
207 "dg-execute-remote-ansible-process": {
208 "type": "artifact-directed-graph",
209 "file": "Plans/CONFIG_ExecAnsiblePlaybook.xml"
213 "resolve-ansible-vars": {
214 "type": "component-resource-resolution",
216 "ResourceResolutionComponent": {
220 "artifact-prefix-names": [
229 "ansible-vars-template": {
230 "type": "artifact-template-velocity",
231 "file": "Templates/ansible-vars-template.vtl"
233 "ansible-vars-mapping": {
234 "type": "artifact-mapping-resource",
235 "file": "Templates/ansible-vars-mapping.json"
239 "execute-remote-ansible": {
240 "type": "component-remote-python-executor",
242 "ComponentRemotePythonExecutor": {
246 "primary": "component-script"
249 "command": "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook first.yaml",
250 "argument-properties": "*ansible-argument-properties",
259 "type": "ansible_galaxy",
271 "component-script": {
272 "type": "artifact-script-ansible",
273 "file": "Scripts/ansible/first.yaml"