Merge "PRH blueprint update for BBS"
[dcaegen2/platform/blueprints.git] / blueprints / cdap-sdk.yaml-template
1 # ============LICENSE_START====================================================
2 # org.onap.dcae
3 # =============================================================================
4 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5 # =============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END======================================================
18
19
20 tosca_definitions_version: cloudify_dsl_1_3
21 imports:
22   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/2/dockerplugin_types.yaml
23   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml
24
25 inputs:
26   dh_override:
27     type: string
28     default: "component_dockerhost"
29   dh_location_id:
30     type: string
31     default: "dcaeams"    
32   cdap_cluster_name:
33     type: string
34     default: "cdap"    
35 node_templates:
36   docker_cdap_host:
37     properties:
38       docker_host_override:
39         get_input: dh_override
40       location_id:
41         get_input: dh_location_id
42     type: dcae.nodes.SelectedDockerHost 
43   cdapdocker:
44     interfaces:
45       cloudify.interfaces.lifecycle:
46         stop:
47           inputs:
48             cleanup_image: true
49         start:
50           inputs:
51             ports:
52              - '11011:11011'                    
53             envs:
54               SERVICE_11015_NAME: { get_input: cdap_cluster_name }
55               SERVICE_11011_IGNORE: 'true'
56     properties:
57           host_port:      11015
58           container_port: 11015
59           docker_config:
60             healthcheck:
61               endpoint: "/status"
62               interval: "15s"
63               timeout: "15s"
64               type: "http"
65           name: 'cdap_docker'       
66           image: "caskdata/cdap-standalone:4.1.2"
67     relationships:
68       - type: dcae.relationships.component_contained_in
69         target: docker_cdap_host
70     type: dcae.nodes.DockerContainerForPlatforms
71