blob: a81d3f68c3b17e002c6f6dcd6b9563decfd5effe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# -*- indent-tabs-mode: nil -*- # vi: set expandtab:
tosca_definitions_version: cloudify_dsl_1_3
plugins:
pgaas:
executor: central_deployment_agent
package_name: pgaas
package_version: 1.3.0
node_types:
dcae.nodes.pgaas.cluster:
derived_from: cloudify.nodes.Root
properties:
writerfqdn:
description: 'FQDN used for admin/read-write access to the cluster'
type: string
use_existing:
type: boolean
default: false
description: 'If set to true, the cluster exists and is being referenced'
readerfqdn:
description: 'FQDN used for read-only access to the cluster (default - same as writerfqdn)'
type: string
default: ''
port:
description: 'Port used for access to the cluster'
type: string
default: '5432'
initialpassword:
description: 'Password of existing PG instance to take control of'
type: string
default: ''
interfaces:
cloudify.interfaces.lifecycle:
create: pgaas.pgaas.pgaas_plugin.add_pgaas_cluster
delete: pgaas.pgaas.pgaas_plugin.rm_pgaas_cluster
dcae.nodes.pgaas.database:
derived_from: cloudify.nodes.Root
properties:
name:
type: string
description: 'Name of database (max 44 alphanumeric)'
use_existing:
type: boolean
default: false
description: 'If set to true, the database exists and is being referenced'
writerfqdn:
type: string
default: ''
description: 'Shortcut for connecting to a pgaas.cluster node (with use_existing=true) with a runson_pgaas_cluster relationship'
interfaces:
cloudify.interfaces.lifecycle:
create: pgaas.pgaas.pgaas_plugin.create_database
delete: pgaas.pgaas.pgaas_plugin.delete_database
relationships:
dcae.relationships.pgaas_cluster_uses_sshkeypair:
derived_from: cloudify.relationships.connected_to
dcae.relationships.database_runson_pgaas_cluster:
derived_from: cloudify.relationships.contained_in
dcae.relationships.application_uses_pgaas_database:
derived_from: cloudify.relationships.connected_to
workflows:
update_db_passwd :
mapping : pgaas.pgaas.pgaas_plugin.update_database
|