summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_with_dmaap.yaml
blob: 95961eec22e3b6df12ed276ffcc3f7438ce77fc1 (plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
#  ============LICENSE_START=======================================================
#    org.onap.dcae
#    ================================================================================
#    Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
#    ================================================================================
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#    ============LICENSE_END=========================================================
#
#description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR
#blueprint_version: 1.0.1
---
tosca_definitions_version: cloudify_dsl_1_3
description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing
  them and publishing them as PM files to local DMaaP DR
imports:
- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml
inputs:
  DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location:
    type: string
  DCAE-HELLO-WORLD-PUB-DR_feed_name:
    type: string
  DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password:
    type: string
  DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username:
    type: string
  DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role:
    type: string
  DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location:
    type: string
  DCAE-HELLO-WORLD-PUB-MR_topic_name:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username:
    type: string
  DCAE-HELLO-WORLD-SUB-DR_feed_name:
    type: string
  DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password:
    type: string
  DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username:
    type: string
  DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role:
    type: string
  DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location:
    type: string
  DCAE-HELLO-WORLD-SUB-MR_topic_name:
    type: string
  dcae.collectors.vcc.helloworld.pm_cpu_limit:
    type: string
    default: "250m"
  dcae.collectors.vcc.helloworld.pm_cpu_request:
    type: string
    default: "250m"
  dcae.collectors.vcc.helloworld.pm_memory_limit:
    type: string
    default: "128Mi"
  dcae.collectors.vcc.helloworld.pm_memory_request:
    type: string
    default: "128Mi"
  dcaes_database_name:
    type: string
    description: db name
    default: ""
  dcaes_database_writerfqdn:
    type: string
    description: db writerfqdn
    default: ""
  dti_database_name:
    type: string
    description: db name
    default: ""
  dti_database_writerfqdn:
    type: string
    description: db writerfqdn
    default: ""
  envs:
    default: &envs {}
  replicas:
    type: integer
    description: number of instances
    default: 1
  repo_database_name:
    type: string
    description: db name
    default: ""
  repo_database_writerfqdn:
    type: string
    description: db writerfqdn
    default: ""
  service_component_name_override:
    type: string
    default: ""
  tag_version:
    type: string
    default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
  tca_policy_00_policy_id:
    type: string
    description: policy_id
    default: ""
  tca_policy_11_policy_id:
    type: string
    description: policy_id
    default: "tca_policy_id_11"
  use_tls:
    type: boolean
    description: flag to indicate tls enable/disable
    default: true
  vcc_hello_name:
    type: string
    default: "fsdfa"
node_templates:
  DCAE-HELLO-WORLD-PUB-DR_feed:
    type: ccsdk.nodes.Feed
    properties:
      feed_name:
        get_input: DCAE-HELLO-WORLD-PUB-DR_feed_name
  DCAE-HELLO-WORLD-PUB-MR_topic:
    type: ccsdk.nodes.Topic
    properties:
      topic_name:
        get_input: DCAE-HELLO-WORLD-PUB-MR_topic_name
  DCAE-HELLO-WORLD-SUB-DR_feed:
    type: ccsdk.nodes.Feed
    properties:
      feed_name:
        get_input: DCAE-HELLO-WORLD-SUB-DR_feed_name
  DCAE-HELLO-WORLD-SUB-MR_topic:
    type: ccsdk.nodes.Topic
    properties:
      topic_name:
        get_input: DCAE-HELLO-WORLD-SUB-MR_topic_name
  dcae.collectors.vcc.helloworld.pm:
    type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            ports: []
            envs:
              <<: *envs
              DCAES_DB_NAME:
                get_input: dcaes_database_name
              DCAES_DB_ADMIN_HOST:
                get_attribute:
                - dcaes_pgaasdb
                - admin
                - host
              DCAES_DB_ADMIN_USER:
                get_attribute:
                - dcaes_pgaasdb
                - admin
                - user
              DCAES_DB_ADMIN_PASS:
                get_attribute:
                - dcaes_pgaasdb
                - admin
                - password
              DTI_DB_NAME:
                get_input: dti_database_name
              DTI_DB_ADMIN_HOST:
                get_attribute:
                - dti_pgaasdb
                - admin
                - host
              DTI_DB_ADMIN_USER:
                get_attribute:
                - dti_pgaasdb
                - admin
                - user
              DTI_DB_ADMIN_PASS:
                get_attribute:
                - dti_pgaasdb
                - admin
                - password
              REPO_DB_NAME:
                get_input: repo_database_name
              REPO_DB_ADMIN_HOST:
                get_attribute:
                - repo_pgaasdb
                - admin
                - host
              REPO_DB_ADMIN_USER:
                get_attribute:
                - repo_pgaasdb
                - admin
                - user
              REPO_DB_ADMIN_PASS:
                get_attribute:
                - repo_pgaasdb
                - admin
                - password
    properties:
      application_config:
        service_calls: []
        streams_publishes:
          DCAE-HELLO-WORLD-PUB-DR:
            dmaap_info: <<DCAE-HELLO-WORLD-PUB-DR_feed>>
            type: data_router
          DCAE-HELLO-WORLD-PUB-MR:
            dmaap_info: <<DCAE-HELLO-WORLD-PUB-MR_topic>>
            type: message_router
            pass:
              get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password
            user:
              get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username
        streams_subscribes:
          DCAE-HELLO-WORLD-SUB-DR:
            dmaap_info: <<DCAE-HELLO-WORLD-SUB-DR_feed>>
            type: data_router
          DCAE-HELLO-WORLD-SUB-MR:
            dmaap_info: <<DCAE-HELLO-WORLD-SUB-MR_topic>>
            type: message_router
            pass:
              get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password
            user:
              get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username
        isSelfServeComponent: false
        service_component_name_override:
          get_input: service_component_name_override
        useDtiConfig: false
        vcc_hello_name:
          get_input: vcc_hello_name
      docker_config:
        healthcheck:
          interval: 60s
          timeout: 20s
          script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
          type: docker
        volumes:
        - container:
            bind: /opt/app/dcae-certificate
          host:
            path: /opt/app/dcae-certificate
        - container:
            bind: /opt/logs/DCAE/dmd/AGENT
          host:
            path: /opt/logs/DCAE/helloworldpm/dmd/AGENT
        - container:
            bind: /opt/logs/DCAE/dmd/WATCHER
          host:
            path: /opt/logs/DCAE/helloworldpm/dmd/WATCHER
        - container:
            bind: /opt/app/vcc/logs/DCAE
          host:
            path: /opt/logs/DCAE/helloworldpm/vcc-logs
        - container:
            bind: /opt/app/vcc/archive/data
          host:
            path: /opt/data/DCAE/helloworldpm/vcc-archive
      image:
        get_input: tag_version
      service_component_type: dcae-collectors-vcc-helloworld-pm
      log_info:
        log_directory: /opt/app/VESCollector/logs/ecomp
      replicas:
        get_input: replicas
      streams_publishes:
      - name: DCAE-HELLO-WORLD-PUB-DR_feed
        location:
          get_input: DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location
        type: data_router
      - name: DCAE-HELLO-WORLD-PUB-MR_topic
        location:
          get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location
        client_role:
          get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role
        type: message_router
      streams_subscribes:
      - name: DCAE-HELLO-WORLD-SUB-MR_topic
        location:
          get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location
        client_role:
          get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role
        type: message_router
      - name: DCAE-HELLO-WORLD-SUB-DR_feed
        location:
          get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location
        type: data_router
        username:
          get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username
        password:
          get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password
        privileged:
          get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged
        decompress:
          get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress
        route: /DCAE-HELLO-WORLD-SUB-DR
        scheme: https
      tls_info:
        cert_directory: /opt/app/dh/etc/cert
        use_tls:
          get_input: use_tls
      resource_config:
        limits:
          cpu:
            get_input: dcae.collectors.vcc.helloworld.pm_cpu_limit
          memory:
            get_input: dcae.collectors.vcc.helloworld.pm_memory_limit
        requests:
          cpu:
            get_input: dcae.collectors.vcc.helloworld.pm_cpu_request
          memory:
            get_input: dcae.collectors.vcc.helloworld.pm_memory_request
    relationships:
    - type: ccsdk.relationships.publish_files
      target: DCAE-HELLO-WORLD-PUB-DR_feed
    - type: ccsdk.relationships.publish_events
      target: DCAE-HELLO-WORLD-PUB-MR_topic
    - type: ccsdk.relationships.subscribe_to_events
      target: DCAE-HELLO-WORLD-SUB-MR_topic
    - type: ccsdk.relationships.subscribe_to_files
      target: DCAE-HELLO-WORLD-SUB-DR_feed
    - type: cloudify.relationships.depends_on
      target: tca_policy_00
    - type: cloudify.relationships.depends_on
      target: tca_policy_11
    - type: cloudify.relationships.depends_on
      target: dcaes_pgaasdb
    - type: cloudify.relationships.depends_on
      target: dti_pgaasdb
    - type: cloudify.relationships.depends_on
      target: repo_pgaasdb
  dcaes_pgaasdb:
    type: dcae.nodes.pgaas.database
    properties:
      writerfqdn:
        get_input: dcaes_database_writerfqdn
      name:
        get_input: dcaes_database_name
      use_existing: true
  dti_pgaasdb:
    type: dcae.nodes.pgaas.database
    properties:
      writerfqdn:
        get_input: dti_database_writerfqdn
      name:
        get_input: dti_database_name
      use_existing: true
  repo_pgaasdb:
    type: dcae.nodes.pgaas.database
    properties:
      writerfqdn:
        get_input: repo_database_writerfqdn
      name:
        get_input: repo_database_name
      use_existing: true
  tca_policy_00:
    type: clamp.nodes.policy
    properties:
      policy_id:
        get_input: tca_policy_00_policy_id
      policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app
  tca_policy_11:
    type: clamp.nodes.policy
    properties:
      policy_id:
        get_input: tca_policy_11_policy_id
      policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app