@@ -11,9 +11,9 @@ imports:
11
11
- yorc-types:1.1.0
12
12
- tosca-normative-types:1.0.0-ALIEN20
13
13
- 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
17
17
18
18
topology_template :
19
19
inputs :
@@ -35,6 +35,29 @@ topology_template:
35
35
type : string
36
36
required : true
37
37
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"
38
61
node_templates :
39
62
PyCOMPSJob :
40
63
metadata :
@@ -45,14 +68,15 @@ topology_template:
45
68
pycomps_endpoint : { get_input: target_host }
46
69
compss_module_version : 2.10
47
70
num_nodes : 2
71
+ qos : debug
48
72
input_data_path : " /tmp"
49
73
output_data_path : " /tmp"
50
74
command : " ~/wordcount_blocks/src/wordcount_blocks.py"
51
75
arguments :
52
76
- " ${INPUT_DATA_PATH}/data.txt"
53
77
- " ${OUTPUT_DATA_PATH}/result.txt"
54
78
- 3000
55
- container_image : " /home/bsc44/bsc44070/images/wordcount_rome.sif "
79
+ container_image : " "
56
80
container_compss_path : " /opt/view/compss"
57
81
container_opts : " -e"
58
82
python_interpreter : python3
@@ -63,15 +87,18 @@ topology_template:
63
87
node : StageInData
64
88
capability : tosca.capabilities.Node
65
89
relationship : tosca.relationships.DependsOn
90
+ - dependsOnDlsdagImageTransferFeature :
91
+ type_requirement : img_transfer
92
+ node : DLSDAGImageTransfer
93
+ capability : tosca.capabilities.Node
94
+ relationship : tosca.relationships.DependsOn
66
95
StageInData :
67
96
metadata :
68
- a4c_edit_x : 249
69
- a4c_edit_y : " -346 "
97
+ a4c_edit_x : 247
98
+ a4c_edit_y : " -345 "
70
99
type : dls.ansible.nodes.DLSDAGStageInData
71
100
properties :
72
- oid : dba52935c7e444d198b377876b4fe0a8
73
101
target_host : { get_input: target_host }
74
- target_path : " /home/bsc44/bsc44070/dls_transfert/data/"
75
102
dls_api_url : { get_input: dls_api_url }
76
103
dls_api_username : { get_input: dls_api_username }
77
104
dls_api_password : { get_input: dls_api_username }
@@ -82,13 +109,12 @@ topology_template:
82
109
StageOutData :
83
110
metadata :
84
111
a4c_edit_x : 245
85
- a4c_edit_y : " -120 "
112
+ a4c_edit_y : " -118 "
86
113
type : dls.ansible.nodes.DLSDAGStageOutData
87
114
properties :
88
- mid : " 71e863ac-aee6-4680-a57c-de318530b71e "
115
+ mid : { get_input: mid }
89
116
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 }
92
118
dls_api_url : { get_input: dls_api_url }
93
119
dls_api_username : { get_input: dls_api_username }
94
120
dls_api_password : { get_input: dls_api_password }
@@ -105,7 +131,7 @@ topology_template:
105
131
ImageCreation :
106
132
metadata :
107
133
a4c_edit_x : 629
108
- a4c_edit_y : " -481 "
134
+ a4c_edit_y : " -480 "
109
135
type : imagecreation.ansible.nodes.ImageCreation
110
136
properties :
111
137
service_url : " https://bscgrid20.bsc.es/image_creation"
@@ -128,14 +154,14 @@ topology_template:
128
154
properties :
129
155
image_id : " not_used"
130
156
target_host : { get_input: target_host }
131
- target_path : " /home/bsc44/bsc44070/images "
157
+ target_path : { get_input: container_image_transfer_directory }
132
158
dls_api_url : { get_input: dls_api_url }
133
159
dls_api_username : { get_input: dls_api_username }
134
160
dls_api_password : { get_input: dls_api_password }
135
161
dag_id : " transfer_image"
136
162
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 }
139
165
requirements :
140
166
- dependsOnImageCreationFeature :
141
167
type_requirement : dependency
0 commit comments