Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 1 | # -*- indent-tabs-mode: nil -*- # vi: set expandtab: |
Tony Hansen | 749bc2d | 2017-10-03 02:51:42 +0000 | [diff] [blame] | 2 | # |
| 3 | # ============LICENSE_START==================================================== |
| 4 | # org.onap.dcae |
| 5 | # ============================================================================= |
| 6 | # Copyright (c) 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====================================================== |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 20 | |
| 21 | tosca_definitions_version: cloudify_dsl_1_3 |
| 22 | |
Tony Hansen | 6b903fe | 2017-09-29 17:29:52 +0000 | [diff] [blame] | 23 | description: |- |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 24 | This blueprint is used to install and to uninstall a persistent database into the central postgres as a platform service. |
| 25 | This blueprint depends upon the deployment of the pgaas_plugin, the PGaaS Cinder volume, the PGaaS service, and Consul. |
| 26 | This blueprint is part of a suite of three blueprints that allow a PGaaS |
| 27 | cluster to be created that has persistent databases stored in Cinder. |
| 28 | pgaas-disk allocates the cinder volumes. It must be run first. |
| 29 | pgaas-cluster creates the PG service and attaches the cinder volumes. It must be run second. |
| 30 | pgaas-database creates a database. It must be run third, for each persistent database. |
| 31 | If the cluster is uninstalled, the persistent databases are unaffected. |
| 32 | If a database blueprint is uninstalled, the persistent database goes away. |
| 33 | If the disk blueprint is uninstalled, all persistent databases go away, along with the server instance. |
| 34 | |
| 35 | imports: |
| 36 | - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml |
| 37 | |
Hansen, Tony (th1395) | b936fb4 | 2018-03-29 14:28:59 +0000 | [diff] [blame] | 38 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml" |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 39 | |
| 40 | inputs: |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 41 | blueprint_version: |
| 42 | type: string |
Hansen, Tony (th1395) | b936fb4 | 2018-03-29 14:28:59 +0000 | [diff] [blame] | 43 | default: '2018-03-29T14:28:59+0000' |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 44 | |
| 45 | # pgaas-specific info |
| 46 | pgaas_cluster_name: |
| 47 | type: string |
| 48 | default: pgcl |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 49 | database_description: |
| 50 | type: string |
| 51 | default: 'This is a sample database' |
| 52 | database_name: |
| 53 | type: string |
| 54 | default: sample |
Tony Hansen | f5e39dd | 2017-10-11 18:08:57 +0000 | [diff] [blame] | 55 | |
| 56 | {{ ONAPTEMPLATE_STANDARD_INPUTS_TYPES }} |
| 57 | |
Tony Hansen | a795b59 | 2017-09-29 01:15:29 +0000 | [diff] [blame] | 58 | node_templates: |
| 59 | pgaasdbtest: |
| 60 | type: dcae.nodes.pgaas.database |
| 61 | properties: |
| 62 | writerfqdn: { concat: [ { get_input: location_prefix }, '-', { get_input: pgaas_cluster_name }, '-write.', { get_input: location_domain } ] } |
| 63 | name: { get_input: database_name } |