Tony Hansen | 749bc2d | 2017-10-03 02:51:42 +0000 | [diff] [blame] | 1 | # -*- indent-tabs-mode: nil -*- # vi: set expandtab: |
| 2 | # |
Alex Shatov | 88e9ee0 | 2017-09-19 11:38:48 -0400 | [diff] [blame] | 3 | # ============LICENSE_START======================================================= |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Alex Shatov | 88e9ee0 | 2017-09-19 11:38:48 -0400 | [diff] [blame] | 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 |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 28 | - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/3/dockerplugin_types.yaml |
Hansen, Tony (th1395) | 68765fc | 2018-04-27 00:37:31 +0000 | [diff] [blame] | 29 | - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml |
Alex Shatov | 88e9ee0 | 2017-09-19 11:38:48 -0400 | [diff] [blame] | 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 |
Alex Shatov | 82a0bc4 | 2019-03-29 08:39:12 -0400 | [diff] [blame] | 42 | default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.policy-handler:5.0.0' |
Alex Shatov | 88e9ee0 | 2017-09-19 11:38:48 -0400 | [diff] [blame] | 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 } |
Alex Shatov | 9e47acd | 2018-01-10 12:14:09 -0500 | [diff] [blame] | 55 | docker_config: |
| 56 | healthcheck: |
| 57 | type: 'http' |
| 58 | interval: '300s' |
| 59 | timeout: '25s' |
| 60 | endpoint: '/healthcheck' |
Alex Shatov | 88e9ee0 | 2017-09-19 11:38:48 -0400 | [diff] [blame] | 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 } |