summaryrefslogtreecommitdiffstats
path: root/asdc-tests/src/test/resources/CI/components/apache/apache-type.yml
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-02-19 10:28:42 +0200
committerMichael Lando <ml636r@att.com>2017-02-19 10:51:01 +0200
commit451a3400b76511393c62a444f588a4ed15f4a549 (patch)
treee4f5873a863d1d3e55618eab48b83262f874719d /asdc-tests/src/test/resources/CI/components/apache/apache-type.yml
parent5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff)
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'asdc-tests/src/test/resources/CI/components/apache/apache-type.yml')
-rw-r--r--asdc-tests/src/test/resources/CI/components/apache/apache-type.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/asdc-tests/src/test/resources/CI/components/apache/apache-type.yml b/asdc-tests/src/test/resources/CI/components/apache/apache-type.yml
new file mode 100644
index 0000000000..360b1a2d60
--- /dev/null
+++ b/asdc-tests/src/test/resources/CI/components/apache/apache-type.yml
@@ -0,0 +1,50 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
+description: TOSCA simple profile with Apache.
+template_name: apache-type
+template_version: 2.0.0-SNAPSHOT
+template_author: FastConnect
+
+imports:
+ - "tosca-normative-types-root:1.0.0.wd03-SNAPSHOT"
+ - "tosca-normative-types-webServer:1.0.0.wd03-SNAPSHOT"
+
+node_types:
+ alien.nodes.Apache:
+ derived_from: tosca.nodes.WebServer
+ description: >
+ The TOSCA Apache Node Type represents an apache component
+ that can be managed and run by a TOSCA Compute Node Type.
+ capabilities:
+ host:
+ type: alien.capabilities.ApacheContainer
+ properties:
+ valid_node_types: [ tosca.nodes.WebApplication ]
+ tags:
+ icon: /images/apache.png
+ properties:
+ version:
+ type: version
+ default: 2.4
+ constraints:
+ - equal: 2.4
+ port:
+ type: integer
+ description: Port for the Apache server
+ default: 80
+ constraints:
+ - greater_or_equal: 1
+ document_root:
+ type: string
+ default: "/var/www"
+ interfaces:
+ Standard:
+ create:
+ inputs:
+ PORT: { get_property: [SELF, port] }
+ DOC_ROOT: { get_property: [SELF, document_root] }
+ implementation: scripts/install_apache.sh
+ start: scripts/start_apache.sh
+
+capability_types:
+ alien.capabilities.ApacheContainer:
+ derived_from: tosca.capabilities.Container