summaryrefslogtreecommitdiffstats
path: root/dpo/blueprint/blueprint_ves.yaml
blob: 3785593bc7a6f3bb29cc39b3aa69a4f723c8c0e6 (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
# ================================================================================
# Copyright (c) 2017-2018 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=========================================================
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
tosca_definitions_version: cloudify_dsl_1_3

description: >
  This handcrafted blueprint will install the ves collector and provision the needed message router topics. This blueprint can be used to verify that a platform installation is operational and working correctly.

imports:
- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- https://NEXUS_REPO_HOST:8443/repository/NEXUS_RAW/type_files/docker/2.2.0/node-type.yaml
- https://NEXUS_REPO_HOST:8443/repository/NEXUS_RAW/type_files/relationship/1.0.0/node-type.yaml
- http://NEXUS_REPO_HOST:8081/repository/NEXUS_RAW/type_files/dmaap/dmaap_mr.yaml

inputs:

  service_id:
    description: Unique id used for an instance of this DCAE service. Use deployment id
    default: 'foobar'
  location_id:
    default: 'solutioning-central'
  docker_host_override:
    default: 'component_dockerhost'

  topic00_aaf_username:
  topic00_aaf_password:
  topic00_location:
    default: mtc5
  topic00_client_role:
    default: com.att.dcae.member

  topic01_aaf_username:
  topic01_aaf_password:
  topic01_location:
    default: mtc5
  topic01_client_role:
    default: com.att.dcae.member

  topic02_aaf_username:
  topic02_aaf_password:
  topic02_location:
    default: mtc5
  topic02_client_role:
    default: com.att.dcae.member

  topic03_aaf_username:
  topic03_aaf_password:
  topic03_location:
    default: mtc5
  topic03_client_role:
    default: com.att.dcae.member

node_templates:

  topic00:
    type: dcae.nodes.Topic
    properties:
      topic_name: sec-fault-unsecure

  topic01:
    type: dcae.nodes.Topic
    properties:
      topic_name: sec-measurement

  topic02:
    type: dcae.nodes.Topic
    properties:
      topic_name: sec-measurement-unsecure

  topic03:
    type: dcae.nodes.Topic
    properties:
      topic_name: sec-fault

  component00:
    type: dcae.nodes.DockerContainerForComponentsUsingDmaap
    properties:
      service_component_type:
        'dcae-controller-ves-collector'
      service_id:
        { get_input: service_id }
      location_id:
        { get_input: location_id }
      application_config:
        collector.keystore.passwordfile: "/opt/app/dcae-certificate/.password"
        collector.service.secure.port: -1
        tomcat.maxthreads: '200'
        collector.keystore.file.location: "/opt/app/dcae-certificate/keystore.jks"
        header.authflag: 0
        collector.service.port: 8080
        streams_publishes:
          sec_fault_unsecure:
            aaf_password: { get_input: topic00_aaf_password }
            dmaap_info: "<<topic00>>"
            type: message_router
            aaf_username: { get_input: topic00_aaf_username }
          sec_measurement:
            aaf_password: { get_input: topic01_aaf_password }
            aaf_username: { get_input: topic01_aaf_username }
            type: message_router
            dmaap_info: "<<topic01>>"
          sec_measurement_unsecure:
            aaf_password: { get_input: topic02_aaf_password }
            aaf_username: { get_input: topic02_aaf_username }
            dmaap_info: "<<topic02>>"
            type: message_router
          sec_fault:
            aaf_password: { get_input: topic03_aaf_password }
            aaf_username: { get_input: topic03_aaf_username }
            dmaap_info: "<<topic03>>"
            type: message_router
        services_calls: {}
        collector.schema.checkflag: 1
        collector.dmaap.streamid: fault=sec_fault,roadm-sec-to-hp|syslog=sec_syslog|heartbeat=sec_heartbeat|measurementsForVfScaling=sec_measurement|mobileFlow=sec_mobileflow|other=sec_other|stateChange=sec_statechange|thresholdCrossingAlert=sec_thresholdCrossingAlert
        header.authlist: userid1,base64encodepwd1|userid2,base64encodepwd2
        streams_subscribes: {}
        collector.inputQueue.maxPending: 8096
        collector.schema.file: "./etc/CommonEventFormat_27.2.json"
      image:
        NEXUS_REPO_HOST:18443/dcae-dev-raw/dcae-controller-ves-collector:1.1.3
      docker_config:
        healthcheck:
          type: "http"
          interval: "15s"
          timeout: "1s"
          endpoint: "/"
      streams_publishes:
      - name: topic00
        location: { get_input: topic00_location }
        client_role: { get_input: topic00_client_role }
        type: message_router
      - name: topic01
        location: { get_input: topic01_location }
        client_role: { get_input: topic01_client_role }
        type: message_router
      - name: topic02
        location: { get_input: topic02_location }
        client_role: { get_input: topic02_client_role }
        type: message_router
      - name: topic03
        location: { get_input: topic03_location }
        client_role: { get_input: topic03_client_role }
        type: message_router
      streams_subscribes: []
    relationships:
    - type: dcae.relationships.component_contained_in
      target: docker_host
    - type: dcae.relationships.publish_events
      target: topic00
    - type: dcae.relationships.publish_events
      target: topic01
    - type: dcae.relationships.publish_events
      target: topic02
    - type: dcae.relationships.publish_events
      target: topic03
    interfaces:
      cloudify.interfaces.lifecycle:
        stop:
          inputs:
            cleanup_image:
              True

  docker_host:
    type: dcae.nodes.SelectedDockerHost
    properties:
      location_id:
        { get_input: location_id }
      docker_host_override:
        { get_input: docker_host_override }