PRH - integration cit cloudify
[dcaegen2/platform/blueprints.git] / blueprints / policy_handler.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START=======================================================
4 # Copyright (c) 2017-2018 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 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
20
21 tosca_definitions_version: cloudify_dsl_1_3
22
23 description: >
24   This blueprint deploys/manages the DCAE policy-handler as a Docker container
25
26 imports:
27   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
28   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/3/dockerplugin_types.yaml
29   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml
30
31 inputs:
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
42     default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:2.4.5'
43
44   application_config:
45     description: policy handler application configuration - requires info on policy-engine
46     default: {}
47
48 node_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 }
55         docker_config:
56           healthcheck:
57             type: 'http'
58             interval: '300s'
59             timeout: '25s'
60             endpoint: '/healthcheck'
61     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 }