aboutsummaryrefslogtreecommitdiffstats
path: root/cloudify
diff options
context:
space:
mode:
authorKrzysztof Bijakowski <krzysztof.bijakowski@gigaspaces.com>2017-08-28 16:52:39 +0200
committerKrzysztof Bijakowski <krzysztof.bijakowski@cloudify.co>2017-08-29 08:11:44 +0200
commit652bdc5eb7993af3d9841a4cf329ed63850f48d0 (patch)
tree406f63def16ad9f5a1b49880c508364139851ab9 /cloudify
parentfb541cc7f4cd6e3f1fc9f1a526b59c832fbce3f4 (diff)
Draft Cloudify blueprint for provisioning ONAP
Issue-ID: OOM-106 Change-Id: Ief907fd3d4fcac5d6e688b21d926f2c87e2247d8 Signed-off-by: Krzysztof Bijakowski <krzysztof.bijakowski@cloudify.co>
Diffstat (limited to 'cloudify')
-rw-r--r--cloudify/scripts/onap/patch_definitions.py1
-rw-r--r--cloudify/scripts/onap/provision_definitions.py1
-rw-r--r--cloudify/scripts/onap/read_definitions.py1
-rw-r--r--cloudify/types/onap.yaml34
4 files changed, 37 insertions, 0 deletions
diff --git a/cloudify/scripts/onap/patch_definitions.py b/cloudify/scripts/onap/patch_definitions.py
new file mode 100644
index 0000000000..d43e921593
--- /dev/null
+++ b/cloudify/scripts/onap/patch_definitions.py
@@ -0,0 +1 @@
+from cloudify import ctx
diff --git a/cloudify/scripts/onap/provision_definitions.py b/cloudify/scripts/onap/provision_definitions.py
new file mode 100644
index 0000000000..d43e921593
--- /dev/null
+++ b/cloudify/scripts/onap/provision_definitions.py
@@ -0,0 +1 @@
+from cloudify import ctx
diff --git a/cloudify/scripts/onap/read_definitions.py b/cloudify/scripts/onap/read_definitions.py
new file mode 100644
index 0000000000..d43e921593
--- /dev/null
+++ b/cloudify/scripts/onap/read_definitions.py
@@ -0,0 +1 @@
+from cloudify import ctx
diff --git a/cloudify/types/onap.yaml b/cloudify/types/onap.yaml
new file mode 100644
index 0000000000..20ef33f2f3
--- /dev/null
+++ b/cloudify/types/onap.yaml
@@ -0,0 +1,34 @@
+node_types:
+ cloudify.onap.kubernetes.App:
+ derived_from: cloudify.nodes.Root
+ properties:
+ name:
+ type: string
+ description: >
+ Name of ONAP app
+ resources:
+ description: >
+ List of paths (relative, blueprint prespective)
+ to all kubernetes resources YAML files definition
+ default: []
+ services:
+ type: string
+ description: >
+ Path (relative, blueprint prespective)
+ to kubernetes app services YAML file definition
+ default: []
+ inputs:
+ description: >
+ Parameters required to create kubernetes resources for each app
+ default: {}
+ interfaces:
+ cloudify.interfaces.lifecycle:
+ create:
+ implementation: cloudify/scripts/onap/read_definitions.py
+ executor: central_deployment_agent
+ configure:
+ implementation: cloudify/scripts/onap/patch_definitions.py
+ executor: central_deployment_agent
+ start:
+ implementation: cloudify/scripts/onap/provision_definitions.py
+ executor: central_deployment_agent