[SDC] update configuration template in chef os
[sdc.git] / catalog-fe / src / test / resources / CI / originalResources / apache-type.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
2 description: TOSCA simple profile with Apache.
3 template_name: apache-type
4 template_version: 2.0.0-SNAPSHOT
5 template_author: FastConnect
6
7 imports:
8   - "tosca-normative-types-root:1.0.0.wd03-SNAPSHOT"
9   - "tosca-normative-types-webServer:1.0.0.wd03-SNAPSHOT"
10
11 node_types:
12   alien.nodes.Apache:
13     derived_from: tosca.nodes.WebServer
14     description: >
15       The TOSCA Apache Node Type represents an apache component
16       that can be managed and run by a TOSCA Compute Node Type.
17     capabilities:
18       host:
19         type: alien.capabilities.ApacheContainer
20         properties:
21           valid_node_types: [ tosca.nodes.WebApplication ]
22     tags:
23       icon: /images/apache.png
24     properties:
25       version:
26         type: version
27         default: 2.4
28         constraints:
29           - equal: 2.4
30       port:
31         type: integer
32         description: Port for the Apache server
33         default: 80
34         constraints:
35           - greater_or_equal: 1
36       document_root:
37           type: string
38           default: "/var/www"
39     interfaces:
40       Standard:
41         create:
42           inputs:
43             PORT: { get_property: [SELF, port] }
44             DOC_ROOT: { get_property: [SELF, document_root] }
45           implementation: scripts/install_apache.sh
46         start: scripts/start_apache.sh
47
48 capability_types:
49   alien.capabilities.ApacheContainer:
50       derived_from: tosca.capabilities.Container