blob: 309c962663f3689ee288c6ef9917c3c016c3d120 [file] [log] [blame]
Hansen, Tony (th1395)b936fb42018-03-29 14:28:59 +00001# -*- indent-tabs-mode: nil -*- # vi: set expandtab:
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======================================================
20
21tosca_definitions_version: cloudify_dsl_1_3
22
23description: |-
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 and the PGaaS service.
26 This blueprint is part of a suite of three blueprints:
27 k8s-pgaas-initdb takes control of the postgres server instance.
28 k8s-pgaas-database creates a database, roles and credentials associated with the database.
29 k8s-pgaas-getdbinfo shows how an application can access a database (including its roles and credentials) that was already created with k8s-pgaas-database.
30
31imports:
32 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
33 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml"
34
35inputs:
36 blueprint_version:
37 type: string
38 default: '2018-03-29T14:28:59+0000'
39
40 # pgaas-specific info
41 k8s_pgaas_instance_fqdn:
42 type: string
43
44 database_description:
45 type: string
46 default: 'This is a sample database'
47
48 database_name:
49 type: string
50 default: sample
51
52node_templates:
53 pgaasdbtest:
54 type: dcae.nodes.pgaas.database
55 properties:
56 writerfqdn: { get_input: k8s_pgaas_instance_fqdn }
57 name: { get_input: database_name }