summaryrefslogtreecommitdiffstats
path: root/pgaas/pgaas_types.yaml
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2020-05-13 18:55:54 +0000
committerHansen, Tony (th1395) <th1395@att.com>2020-06-02 20:36:06 +0000
commit7e1efe3174336fa09a56c596af55ba93d7b14a91 (patch)
treebad0fc0c5bb0a54f69e7d046008c423c507f87d6 /pgaas/pgaas_types.yaml
parent05e95de3b9736160b4229232903e86706fb782e1 (diff)
move plugins from from ccsdk to dcaegen2
copy dmaap, helm, pgaas and sshkeyshare plugins from ccsdk to dcaegen2 Change-Id: Ib257495de6c275c45f0c87a4b42ac21a2fab7979 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-2207 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'pgaas/pgaas_types.yaml')
-rw-r--r--pgaas/pgaas_types.yaml67
1 files changed, 67 insertions, 0 deletions
diff --git a/pgaas/pgaas_types.yaml b/pgaas/pgaas_types.yaml
new file mode 100644
index 0000000..951fbd5
--- /dev/null
+++ b/pgaas/pgaas_types.yaml
@@ -0,0 +1,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.2.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