Add mod/runtimeapi
[dcaegen2/platform.git] / mod / runtimeapi / runtime-core / src / test / data / blueprints / helloworld_onap_dublin.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ============LICENSE_END=========================================================
16 ---
17 tosca_definitions_version: cloudify_dsl_1_3
18 imports:
19 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
20 - /k8splugin/1.4.22/node-type.yaml
21 - /relationship/1.0.1/types.yaml
22 - /cloudifydmaapplugin/1.4.6/node-type.yaml
23 - /dcaepolicyplugin/2.3.1/node-type.yaml
24 - /pgaas/0.3.2/pgaas_types.yaml
25 inputs:
26   DCAE-HELLO-WORLD-PUB-DR_delivery_url:
27     type: string
28   DCAE-HELLO-WORLD-PUB-DR_location:
29     type: string
30   DCAE-HELLO-WORLD-PUB-DR_password:
31     type: string
32   DCAE-HELLO-WORLD-PUB-DR_subscriber_id:
33     type: string
34   DCAE-HELLO-WORLD-PUB-DR_username:
35     type: string
36   DCAE-HELLO-WORLD-SUB-DR_delivery_url:
37     type: string
38   DCAE-HELLO-WORLD-SUB-DR_location:
39     type: string
40   DCAE-HELLO-WORLD-SUB-DR_password:
41     type: string
42   DCAE-HELLO-WORLD-SUB-DR_subscriber_id:
43     type: string
44   DCAE-HELLO-WORLD-SUB-DR_username:
45     type: string
46   DCAE_HELLO_WORLD_PUB_MR_publish_url:
47     type: string
48   DCAE_HELLO_WORLD_SUB_MR_subscribe_url:
49     type: string
50   external_port:
51     type: string
52     description: Kubernetes node port on which collector is exposed
53     default: '"''30235''"'
54   log_directory:
55     type: string
56     default: '"/opt/app/vcc/logs/DCAE"'
57   replicas:
58     type: integer
59     description: number of instances
60     default: 1
61   tag_version:
62     type: string
63     default: '"dcae-controller-vcc-helloworld-pm:18.02-001"'
64   vcc_hello_name:
65     type: string
66 node_templates:
67   dcae.collectors-vcc-helloworld-pm:
68     type: dcae.nodes.ContainerizedPlatformComponent
69     interfaces:
70       cloudify.interfaces.lifecycle:
71         start:
72           inputs:
73             ports: []
74     properties:
75       application_config:
76         service_calls: []
77         stream_publishes:
78           DCAE-HELLO-WORLD-PUB-DR:
79             dmaap_info:
80               username:
81                 get_input: DCAE-HELLO-WORLD-PUB-DR_username
82               password:
83                 get_input: DCAE-HELLO-WORLD-PUB-DR_password
84               location:
85                 get_input: DCAE-HELLO-WORLD-PUB-DR_location
86               delivery_url:
87                 get_input: DCAE-HELLO-WORLD-PUB-DR_delivery_url
88               subscriber_id:
89                 get_input: DCAE-HELLO-WORLD-PUB-DR_subscriber_id
90             type: data_router
91           DCAE-HELLO-WORLD-PUB-MR:
92             dmaap_info:
93               topic_url:
94                 get_input: DCAE_HELLO_WORLD_PUB_MR_publish_url
95             type: message_router
96         stream_subcribes:
97           DCAE-HELLO-WORLD-SUB-DR:
98             dmaap_info:
99               username:
100                 get_input: DCAE-HELLO-WORLD-SUB-DR_username
101               password:
102                 get_input: DCAE-HELLO-WORLD-SUB-DR_password
103               location:
104                 get_input: DCAE-HELLO-WORLD-SUB-DR_location
105               delivery_url:
106                 get_input: DCAE-HELLO-WORLD-SUB-DR_delivery_url
107               subscriber_id:
108                 get_input: DCAE-HELLO-WORLD-SUB-DR_subscriber_id
109             type: data_router
110           DCAE-HELLO-WORLD-SUB-MR:
111             dmaap_info:
112               topic_url:
113                 get_input: DCAE_HELLO_WORLD_SUB_MR_subscribe_url
114             type: message_router
115         isSelfServeComponent: false
116         useDtiConfig: false
117         vcc_hello_name:
118           get_input: vcc_hello_name
119       docker_config:
120         interval: 60s
121         timeout: 20s
122         script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
123         type: docker
124       image:
125         get_input: tag_version
126       log_info:
127         get_input: log_directory
128       dns_name: dcae.collectors-vcc-helloworld-pm
129       replicas:
130         get_input: replicas
131       name: dcae.collectors-vcc-helloworld-pm