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