Add "code moved" warning to old CLAMP repo readme
[clamp.git] / src / test / resources / clds / blueprint-with-microservice-chain.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2
3 description: >
4   This blueprint deploys/manages the TCA module as a Docker container
5
6 imports:
7   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
8   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.12/k8splugin_types.yaml
9   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
10 inputs:
11   aaiEnrichmentHost:
12     type: string
13     default: "aai.onap.svc.cluster.local"
14   aaiEnrichmentPort:
15     type: string
16     default: "8443"
17   enableAAIEnrichment:
18     type: string
19     default: true
20   dmaap_host:
21     type: string
22     default: message-router.onap.svc.cluster.local
23   dmaap_port:
24     type: string
25     default: "3904"
26   enableRedisCaching:
27     type: string
28     default: false
29   redisHosts:
30     type: string
31     default: dcae-redis.onap.svc.cluster.local:6379
32   tag_version:
33     type: string
34     default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.0-STAGING-latest"
35   consul_host:
36     type: string
37     default: consul-server.onap.svc.cluster.local
38   consul_port:
39     type: string
40     default: "8500"
41   cbs_host:
42     type: string
43     default: "config-binding-service.dcae.svc.cluster.local"
44   cbs_port:
45     type: string
46     default: "10000"
47   policy_id:
48     type: string
49     default: "none"
50   external_port:
51     type: string
52     description: Kubernetes node port on which CDAPgui is exposed
53     default: "32012"
54   policy_model_id:
55     type: string
56     default: "onap.policies.monitoring.cdap.tca.hi.lo.app"
57
58 node_templates:
59   first_app:
60     type: dcae.nodes.ContainerizedServiceComponent
61     properties:
62         service_component_type: 'dcaegen2-analytics-tca'
63         application_config: {}
64         docker_config: {}
65         image:
66           get_input: tag_version
67         log_info:
68           log_directory: "/opt/app/TCAnalytics/logs"
69     relationships:
70       - target: tca_policy_1
71         type: cloudify.relationships.depends_on
72   second_app:
73     type: dcae.nodes.ContainerizedServiceComponent
74     relationships:
75       - target: tca_policy_2
76         type: cloudify.relationships.depends_on
77       - type: clamp_node.relationships.gets_input_from
78         target: first_app
79     properties:
80         service_component_type: 'dcaegen2-analytics-tca'
81         application_config: {}
82         docker_config: {}
83         image:
84           get_input: tag_version
85         log_info:
86           log_directory: "/opt/app/TCAnalytics/logs"
87         application_config:
88             app_config:
89                 appDescription: DCAE Analytics Threshold Crossing Alert Application
90                 appName: dcae-tca
91                 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
92                 tcaAlertsAbatementTableTTLSeconds: '1728000'
93                 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
94                 tcaVESAlertsTableName: TCAVESAlertsTable
95                 tcaVESAlertsTableTTLSeconds: '1728000'
96                 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
97                 tcaVESMessageStatusTableTTLSeconds: '86400'
98                 thresholdCalculatorFlowletInstances: '2'
99             app_preferences:
100                 aaiEnrichmentHost:
101                     get_input: aaiEnrichmentHost
102                 aaiEnrichmentIgnoreSSLCertificateErrors: 'true'
103                 aaiEnrichmentPortNumber: '8443'
104                 aaiEnrichmentProtocol: https
105                 aaiEnrichmentUserName: dcae@dcae.onap.org
106                 aaiEnrichmentUserPassword: demo123456!
107                 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
108                 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
109                 enableAAIEnrichment:
110                     get_input: enableAAIEnrichment
111                 enableRedisCaching:
112                     get_input: enableRedisCaching
113                 redisHosts:
114                     get_input: redisHosts
115                 enableAlertCEFFormat: 'false'
116                 publisherContentType: application/json
117                 publisherHostName:
118                     get_input: dmaap_host
119                 publisherHostPort:
120                     get_input: dmaap_port
121                 publisherMaxBatchSize: '1'
122                 publisherMaxRecoveryQueueSize: '100000'
123                 publisherPollingInterval: '20000'
124                 publisherProtocol: http
125                 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
126                 subscriberConsumerGroup: OpenDCAE-c12
127                 subscriberConsumerId: c12
128                 subscriberContentType: application/json
129                 subscriberHostName:
130                     get_input: dmaap_host
131                 subscriberHostPort:
132                     get_input: dmaap_port
133                 subscriberMessageLimit: '-1'
134                 subscriberPollingInterval: '30000'
135                 subscriberProtocol: http
136                 subscriberTimeoutMS: '-1'
137                 subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT
138                 tca_policy: ''
139         service_component_type: dcaegen2-analytics_tca
140     interfaces:
141       cloudify.interfaces.lifecycle:
142         start:
143           inputs:
144             envs:
145                 DMAAPHOST:
146                     { get_input: dmaap_host }
147                 DMAAPPORT:
148                     { get_input: dmaap_port }
149                 DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT"
150                 DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT"
151                 AAIHOST:
152                     { get_input: aaiEnrichmentHost }
153                 AAIPORT:
154                     { get_input: aaiEnrichmentPort }
155                 CONSUL_HOST:
156                     { get_input: consul_host }
157                 CONSUL_PORT:
158                     { get_input: consul_port }
159                 CBS_HOST:
160                     { get_input: cbs_host }
161                 CBS_PORT:
162                     { get_input: cbs_port }
163                 CONFIG_BINDING_SERVICE: "config_binding_service"
164             ports:
165               - concat: ["11011:", { get_input: external_port }]
166   third_app:
167     type: dcae.nodes.ContainerizedServiceComponent
168     properties:
169         service_component_type: 'dcaegen2-analytics-tca'
170         application_config: {}
171         docker_config: {}
172         image:
173           get_input: tag_version
174         log_info:
175           log_directory: "/opt/app/TCAnalytics/logs"
176     relationships:
177       - target: tca_policy_3
178         type: cloudify.relationships.depends_on
179       - type: clamp_node.relationships.gets_input_from
180         target: second_app
181   tca_policy_1:
182     type: dcae.nodes.policy
183     properties:
184       policy_id:
185            get_input: policy_id
186       policy_model_id: 
187            get_input: policy_model_id
188   tca_policy_2:
189     type: dcae.nodes.policy
190     properties:
191       policy_id:
192            get_input: policy_id
193       policy_model_id: 
194            get_input: policy_model_id
195            
196   tca_policy_3:
197     type: dcae.nodes.policy
198     properties:
199       policy_id:
200            get_input: policy_id
201       policy_model_id: 
202            get_input: policy_model_id