blob: a89d6384361f054926a147343ad7603248e69ca3 [file] [log] [blame]
Tony Hansena795b592017-09-29 01:15:29 +00001# -*- indent-tabs-mode: nil -*- # vi: set expandtab:
Tony Hansen749bc2d2017-10-03 02:51:42 +00002#
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 Hansena795b592017-09-29 01:15:29 +000020
21tosca_definitions_version: cloudify_dsl_1_3
22
Tony Hansen6b903fe2017-09-29 17:29:52 +000023description: |-
Tony Hansena795b592017-09-29 01:15:29 +000024 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
35imports:
36 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
37
Hansen, Tony (th1395)b936fb42018-03-29 14:28:59 +000038 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml"
Tony Hansena795b592017-09-29 01:15:29 +000039
40inputs:
Tony Hansena795b592017-09-29 01:15:29 +000041 blueprint_version:
42 type: string
Hansen, Tony (th1395)b936fb42018-03-29 14:28:59 +000043 default: '2018-03-29T14:28:59+0000'
Tony Hansena795b592017-09-29 01:15:29 +000044
45 # pgaas-specific info
46 pgaas_cluster_name:
47 type: string
48 default: pgcl
Tony Hansena795b592017-09-29 01:15:29 +000049 database_description:
50 type: string
51 default: 'This is a sample database'
52 database_name:
53 type: string
54 default: sample
Tony Hansenf5e39dd2017-10-11 18:08:57 +000055
56{{ ONAPTEMPLATE_STANDARD_INPUTS_TYPES }}
57
Tony Hansena795b592017-09-29 01:15:29 +000058node_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 }