blob: 46612997d61dc94c7eeef6ba0d219848b17f9cb2 [file] [log] [blame]
Vijayc41a39d2017-10-27 20:14:28 +00001tosca_definitions_version: cloudify_dsl_1_3
2imports:
3- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/2/dockerplugin_types.yaml"
4- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dcaepolicyplugin/1/dcaepolicyplugin_types.yaml"
Hansen, Tony (th1395)68765fc2018-04-27 00:37:31 +00005- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml"
Hansen, Tony (th1395)b936fb42018-03-29 14:28:59 +00006- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml"
Vijayc41a39d2017-10-27 20:14:28 +00007inputs:
8 dcae_CL_publish_url:
9 type: string
10 default: "http://10.0.11.1:3904/events/unauthenticated.DCAE_CL_OUTPUT"
Guangrong Fu621d6602017-11-09 16:01:38 +080011 ves_fault_publish_url:
12 type: string
13 default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
Vijayc41a39d2017-10-27 20:14:28 +000014 docker_host_override:
15 type: string
16 default: "component_dockerhost"
17 dh_location_id:
18 type: string
19 default: "zone1"
20 msb_hostname:
21 type: string
Vijay573499f2017-11-01 21:26:46 +000022 default: ""
23 location_domain:
24 type: string
25 location_prefix:
26 type: string
27 pgaas_cluster_name:
28 type: string
29 # use the single-VM PG instance
30 default: pgvm
31 database_name:
32 type: string
33 default: holmes
Vijayc41a39d2017-10-27 20:14:28 +000034node_templates:
Vijay573499f2017-11-01 21:26:46 +000035 pgaasvm:
36 type: dcae.nodes.pgaas.database
37 properties:
38 writerfqdn: { concat: [ { get_input: location_prefix }, '-', { get_input: pgaas_cluster_name }, '-write.', { get_input: location_domain } ] }
39 name: { get_input: database_name }
40 use_existing: true
Vijayc41a39d2017-10-27 20:14:28 +000041 docker_holmes_host:
42 type: dcae.nodes.SelectedDockerHost
43 properties:
44 docker_host_override:
45 get_input: docker_host_override
46 location_id:
47 get_input: dh_location_id
48 holmesengine:
49 type: dcae.nodes.DockerContainerForComponentsUsingDmaap
Vijay573499f2017-11-01 21:26:46 +000050 interfaces:
51 cloudify.interfaces.lifecycle:
52 start:
53 inputs:
54 envs:
55 URL_JDBC:
56 { get_attribute: [ pgaasvm, admin, host ] }
57 JDBC_PASSWORD:
58 { get_attribute: [ pgaasvm, admin, password ] }
59 JDBC_USERNAME:
60 { get_attribute: [ pgaasvm, admin, user ] }
61 MSB_ADDR:
62 get_input: msb_hostname
Vijayc41a39d2017-10-27 20:14:28 +000063 properties:
64 application_config:
65 msb.hostname:
66 get_input: msb_hostname
67 msb.uri: /api/microservices/v1/services
68 services_calls: {}
69 streams_publishes:
70 dcae_cl_out:
71 dmaap_info:
72 topic_url:
73 get_input: dcae_CL_publish_url
74 type: message_router
Guangrong Fu621d6602017-11-09 16:01:38 +080075 streams_subscribes:
76 ves_fault:
77 dmaap_info:
78 topic_url:
79 get_input: ves_fault_publish_url
80 type: message_router
Vijayc41a39d2017-10-27 20:14:28 +000081 docker_config:
82 healthcheck:
Vijaydd825cb2017-11-06 00:46:28 +000083 endpoint: /api/holmes-engine-mgmt/v1/healthcheck
Vijayc41a39d2017-10-27 20:14:28 +000084 interval: 15s
85 timeout: 1s
86 type: http
87 ports:
88 - 9102:9102
Lusheng Jid1149a62017-11-15 17:08:02 -050089 image: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/holmes/engine-management:v1.0.0"
Vijayc41a39d2017-10-27 20:14:28 +000090 location_id:
91 get_input: dh_location_id
92 service_component_type: dcae-analytics-holmes-engine-management
93 relationships:
Vijay573499f2017-11-01 21:26:46 +000094 - type: cloudify.relationships.depends_on
95 target: pgaasvm
Vijayc41a39d2017-10-27 20:14:28 +000096 - target: docker_holmes_host
97 type: dcae.relationships.component_contained_in
Vijay573499f2017-11-01 21:26:46 +000098