Tony Hansen | 749bc2d | 2017-10-03 02:51:42 +0000 | [diff] [blame] | 1 | # -*- indent-tabs-mode: nil -*- # vi: set expandtab: |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 2 | # |
| 3 | # ============LICENSE_START========================================== |
Tony Hansen | 749bc2d | 2017-10-03 02:51:42 +0000 | [diff] [blame] | 4 | # org.onap.dcae |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 5 | # =================================================================== |
| 6 | # Copyright © 2017 AT&T Intellectual Property. All rights reserved. |
| 7 | # =================================================================== |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
| 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
| 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
| 19 | # ============LICENSE_END============================================ |
| 20 | # |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 21 | # ECOMP and OpenECOMP are trademarks |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 22 | # and service marks of AT&T Intellectual Property. |
| 23 | # |
| 24 | |
| 25 | tosca_definitions_version: cloudify_dsl_1_3 |
| 26 | |
| 27 | description: > |
| 28 | This blueprint deploys/manages the DCAE deployment handler as a Docker container |
| 29 | |
| 30 | imports: |
| 31 | - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml |
Lusheng Ji | 6a7e7c5 | 2017-10-10 16:54:32 +0000 | [diff] [blame] | 32 | - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/2/dockerplugin_types.yaml |
Hansen, Tony (th1395) | 68765fc | 2018-04-27 00:37:31 +0000 | [diff] [blame] | 33 | - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml |
Lusheng Ji | 6a7e7c5 | 2017-10-10 16:54:32 +0000 | [diff] [blame] | 34 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 35 | |
| 36 | inputs: |
| 37 | |
| 38 | location_id: |
| 39 | description: Deployment location |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 40 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 41 | docker_host_override: |
| 42 | description: Target docker host |
| 43 | default: 'platform_dockerhost' |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 44 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 45 | deployment_handler_image: |
| 46 | description: Docker image for deployment handler |
Alex Shatov | 80ed2fd | 2019-02-04 14:09:58 -0500 | [diff] [blame] | 47 | default: '{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.deployment-handler:3.2.0' |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 48 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 49 | application_config: |
| 50 | description: deployment handler application configuration (to override defaults) |
| 51 | default: {} |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 52 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 53 | host_log_root: |
| 54 | description: root directory for logs in the Docker host file system |
| 55 | default: '/opt/onap/log' |
| 56 | |
| 57 | node_templates: |
| 58 | |
| 59 | # Deployment Handler |
| 60 | deployment-handler: |
| 61 | type: dcae.nodes.DockerContainerForPlatforms |
| 62 | properties: |
| 63 | name: |
| 64 | 'deployment_handler' |
| 65 | image: |
| 66 | { get_input: deployment_handler_image } |
| 67 | application_config: |
| 68 | { get_input: application_config } |
| 69 | host_port: |
| 70 | 8188 |
| 71 | container_port: |
| 72 | 8443 |
| 73 | docker_config: |
| 74 | healthcheck: |
| 75 | type: 'http' |
| 76 | interval: '300s' |
| 77 | timeout: '5s' |
| 78 | endpoint: '/' |
| 79 | relationships: |
| 80 | - type: dcae.relationships.component_contained_in |
| 81 | target: docker_host |
| 82 | interfaces: |
| 83 | cloudify.interfaces.lifecycle: |
| 84 | start: |
| 85 | inputs: |
| 86 | envs: |
| 87 | SOMEVAR: somevalue |
| 88 | #volumes: |
| 89 | #- host: |
| 90 | #path: { concat: [ { get_input: host_log_root }, '/dcae/deployment_handler' ] } |
| 91 | #container: |
| 92 | #bind: /opt/app/dh/log |
| 93 | #mode: rw |
Alex Shatov | daaebc1 | 2018-03-16 12:39:59 -0400 | [diff] [blame] | 94 | |
Jack Lucas | 413edb7 | 2017-08-31 18:25:25 +0000 | [diff] [blame] | 95 | # Docker host |
| 96 | docker_host: |
| 97 | type: dcae.nodes.SelectedDockerHost |
| 98 | properties: |
| 99 | location_id: |
| 100 | { get_input: location_id } |
| 101 | docker_host_override: |
| 102 | { get_input: docker_host_override } |