Skip to content

Commit ea05d24

Browse files
committed
Add more topology inputs
1 parent e27edc6 commit ea05d24

File tree

1 file changed

+42
-16
lines changed

1 file changed

+42
-16
lines changed

minimal_workflow/tosca/types.yaml

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ imports:
1111
- yorc-types:1.1.0
1212
- tosca-normative-types:1.0.0-ALIEN20
1313
- alien-base-types:3.0.0
14-
- dls.ansible:1.0.0-SNAPSHOT
15-
- pycomps.ansible:1.0.0-SNAPSHOT
16-
- imagecreation.ansible:1.0.0-SNAPSHOT
14+
- pycomps.ansible:1.1.0-SNAPSHOT
15+
- dls.ansible:1.1.0-SNAPSHOT
16+
- imagecreation.ansible:1.0.0
1717

1818
topology_template:
1919
inputs:
@@ -35,6 +35,29 @@ topology_template:
3535
type: string
3636
required: true
3737
description: "the remote host"
38+
user_id:
39+
type: string
40+
required: false
41+
default: ""
42+
description: "User id to use for authentication may be replaced with workflow input"
43+
vault_id:
44+
type: string
45+
required: false
46+
default: ""
47+
description: "User id to use for authentication may be replaced with workflow input"
48+
container_image_transfer_directory:
49+
type: string
50+
required: false
51+
description: "path of the file on the remote host"
52+
mid:
53+
type: string
54+
required: true
55+
description: "Uploaded Metadata ID"
56+
register_result_in_datacat:
57+
type: boolean
58+
required: false
59+
default: false
60+
description: "Should the record created in b2share be registered with data cat"
3861
node_templates:
3962
PyCOMPSJob:
4063
metadata:
@@ -45,14 +68,15 @@ topology_template:
4568
pycomps_endpoint: { get_input: target_host }
4669
compss_module_version: 2.10
4770
num_nodes: 2
71+
qos: debug
4872
input_data_path: "/tmp"
4973
output_data_path: "/tmp"
5074
command: "~/wordcount_blocks/src/wordcount_blocks.py"
5175
arguments:
5276
- "${INPUT_DATA_PATH}/data.txt"
5377
- "${OUTPUT_DATA_PATH}/result.txt"
5478
- 3000
55-
container_image: "/home/bsc44/bsc44070/images/wordcount_rome.sif"
79+
container_image: ""
5680
container_compss_path: "/opt/view/compss"
5781
container_opts: "-e"
5882
python_interpreter: python3
@@ -63,15 +87,18 @@ topology_template:
6387
node: StageInData
6488
capability: tosca.capabilities.Node
6589
relationship: tosca.relationships.DependsOn
90+
- dependsOnDlsdagImageTransferFeature:
91+
type_requirement: img_transfer
92+
node: DLSDAGImageTransfer
93+
capability: tosca.capabilities.Node
94+
relationship: tosca.relationships.DependsOn
6695
StageInData:
6796
metadata:
68-
a4c_edit_x: 249
69-
a4c_edit_y: "-346"
97+
a4c_edit_x: 247
98+
a4c_edit_y: "-345"
7099
type: dls.ansible.nodes.DLSDAGStageInData
71100
properties:
72-
oid: dba52935c7e444d198b377876b4fe0a8
73101
target_host: { get_input: target_host }
74-
target_path: "/home/bsc44/bsc44070/dls_transfert/data/"
75102
dls_api_url: { get_input: dls_api_url }
76103
dls_api_username: { get_input: dls_api_username }
77104
dls_api_password: { get_input: dls_api_username }
@@ -82,13 +109,12 @@ topology_template:
82109
StageOutData:
83110
metadata:
84111
a4c_edit_x: 245
85-
a4c_edit_y: "-120"
112+
a4c_edit_y: "-118"
86113
type: dls.ansible.nodes.DLSDAGStageOutData
87114
properties:
88-
mid: "71e863ac-aee6-4680-a57c-de318530b71e"
115+
mid: { get_input: mid }
89116
target_host: { get_input: target_host }
90-
source_path: "/home/bsc44/bsc44070/dls_transfert/data/"
91-
register: false
117+
register: { get_input: register_result_in_datacat }
92118
dls_api_url: { get_input: dls_api_url }
93119
dls_api_username: { get_input: dls_api_username }
94120
dls_api_password: { get_input: dls_api_password }
@@ -105,7 +131,7 @@ topology_template:
105131
ImageCreation:
106132
metadata:
107133
a4c_edit_x: 629
108-
a4c_edit_y: "-481"
134+
a4c_edit_y: "-480"
109135
type: imagecreation.ansible.nodes.ImageCreation
110136
properties:
111137
service_url: "https://bscgrid20.bsc.es/image_creation"
@@ -128,14 +154,14 @@ topology_template:
128154
properties:
129155
image_id: "not_used"
130156
target_host: { get_input: target_host }
131-
target_path: "/home/bsc44/bsc44070/images"
157+
target_path: { get_input: container_image_transfer_directory }
132158
dls_api_url: { get_input: dls_api_url }
133159
dls_api_username: { get_input: dls_api_username }
134160
dls_api_password: { get_input: dls_api_password }
135161
dag_id: "transfer_image"
136162
debug: { get_input: debug }
137-
user_id: bsc44070
138-
vault_id: "c7f175cb-430e-4a8d-ab36-6e9dd86550e2"
163+
user_id: { get_input: user_id }
164+
vault_id: { get_input: vault_id }
139165
requirements:
140166
- dependsOnImageCreationFeature:
141167
type_requirement: dependency

0 commit comments

Comments
 (0)