Added no_start property to TOSCA definition for XOS
Change-Id: I2394ff7212a1ee5d552623828e4d72c84621d015
diff --git a/xos/tosca/custom_types/xos.m4 b/xos/tosca/custom_types/xos.m4
index b0d5b32..3cdf7ef 100644
--- a/xos/tosca/custom_types/xos.m4
+++ b/xos/tosca/custom_types/xos.m4
@@ -47,6 +47,10 @@
type: string
required: false
description: List of extra_hosts to pass to docker compose
+ no_start:
+ type: boolean
+ required: false
+ description: Wheter to start the Django server or not
tosca.nodes.XOSVolume:
derived_from: tosca.nodes.Root
diff --git a/xos/tosca/custom_types/xos.yaml b/xos/tosca/custom_types/xos.yaml
index d3baf30..d1eb576 100644
--- a/xos/tosca/custom_types/xos.yaml
+++ b/xos/tosca/custom_types/xos.yaml
@@ -77,6 +77,10 @@
type: string
required: false
description: List of extra_hosts to pass to docker compose
+ no_start:
+ type: boolean
+ required: false
+ description: Wheter to start the Django server or not
tosca.nodes.XOSVolume:
derived_from: tosca.nodes.Root
diff --git a/xos/tosca/resources/xosmodel.py b/xos/tosca/resources/xosmodel.py
index 5c7cb3e..a935b65 100644
--- a/xos/tosca/resources/xosmodel.py
+++ b/xos/tosca/resources/xosmodel.py
@@ -1,10 +1,15 @@
from xosresource import XOSResource
from core.models import XOS, XOSVolume
+
class XOSXOS(XOSResource):
provides = "tosca.nodes.XOS"
xos_model = XOS
- copyin_props = ["ui_port", "bootstrap_ui_port", "docker_project_name", "db_container_name", "redis_container_name", "enable_build", "frontend_only", "source_ui_image", "extra_hosts"]
+ copyin_props = [
+ "ui_port", "bootstrap_ui_port", "docker_project_name", "db_container_name", "redis_container_name",
+ "enable_build", "frontend_only", "source_ui_image", "extra_hosts", "no_start"
+ ]
+
class XOSVolume(XOSResource):
provides = "tosca.nodes.XOSVolume"