blob: 29e66e6782ec169ca4164a70507caa1743aa136b [file] [log] [blame]
Tony Hansen749bc2d2017-10-03 02:51:42 +00001# -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2#
Alex Shatov88e9ee02017-09-19 11:38:48 -04003# ============LICENSE_START=======================================================
Alex Shatovdaaebc12018-03-16 12:39:59 -04004# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
Alex Shatov88e9ee02017-09-19 11:38:48 -04005# ================================================================================
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# ECOMP is a trademark and service mark of AT&T Intellectual Property.
20
21tosca_definitions_version: cloudify_dsl_1_3
22
23description: >
24 This blueprint deploys/manages the DCAE policy-handler as a Docker container
25
26imports:
27 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
Alex Shatovdaaebc12018-03-16 12:39:59 -040028 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/3/dockerplugin_types.yaml
Hansen, Tony (th1395)68765fc2018-04-27 00:37:31 +000029 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml
Alex Shatov88e9ee02017-09-19 11:38:48 -040030
31inputs:
32
33 location_id:
34 description: Deployment location
35
36 docker_host_override:
37 description: Target docker host
38 default: 'platform_dockerhost'
39
40 policy_handler_image:
41 description: Docker image for policy_handler
Alex Shatov82a0bc42019-03-29 08:39:12 -040042 default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:5.0.0'
Alex Shatov88e9ee02017-09-19 11:38:48 -040043
44 application_config:
45 description: policy handler application configuration - requires info on policy-engine
46 default: {}
47
48node_templates:
49 policy_handler:
50 type: dcae.nodes.DockerContainerForPlatforms
51 properties:
52 name: 'policy_handler'
53 image: { get_input: policy_handler_image }
54 application_config: { get_input: application_config }
Alex Shatov9e47acd2018-01-10 12:14:09 -050055 docker_config:
56 healthcheck:
57 type: 'http'
58 interval: '300s'
59 timeout: '25s'
60 endpoint: '/healthcheck'
Alex Shatov88e9ee02017-09-19 11:38:48 -040061 relationships:
62 - type: dcae.relationships.component_contained_in
63 target: docker_host
64
65 # Docker host
66 docker_host:
67 type: dcae.nodes.SelectedDockerHost
68 properties:
69 location_id: { get_input: location_id }
70 docker_host_override: { get_input: docker_host_override }