vFW and vDNS support added to azure-plugin
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / examples / tosca-simple-1.0 / use-cases / non-normative-types.yaml
1
2 artifact_types:
3
4   tosca.artifacts.Deployment.Image.Container.Docker:
5     _extensions:
6       specification: tosca-simple-1.0
7       specification_section: 8.1.1
8     derived_from: tosca.artifacts.Deployment.Image
9     description: Docker Container Image
10
11   tosca.artifacts.Deployment.Image.VM.ISO:
12     _extensions:
13       specification: tosca-simple-1.0
14       specification_section: 8.1.2
15     derived_from: tosca.artifacts.Deployment.Image.VM
16     description: Virtual Machine (VM) image in ISO disk format
17     mime_type: application/octet-stream
18     file_ext: [ iso ]
19
20   tosca.artifacts.Deployment.Image.VM.QCOW2:
21     _extensions:
22       specification: tosca-simple-1.0
23       specification_section: 8.1.3
24     derived_from: tosca.artifacts.Deployment.Image.VM
25     description: Virtual Machine (VM) image in QCOW v2 standard disk format
26     mime_type: application/octet-stream
27     file_ext: [ qcow2 ]
28
29 capability_types:
30
31   tosca.capabilities.Container.Docker:
32     _extensions:
33       specification: tosca-simple-1.0
34       specification_section: 8.2.1
35     derived_from: tosca.capabilities.Container
36     description: The type indicates capabilities of a Docker runtime environment (client).
37     properties:
38       version:
39         description: >-
40           The Docker version capability (i.e., the versions supported by the capability).
41         type: list
42         required: false
43         entry_schema: version
44       publish_all:
45         description: >-
46           Indicates that all ports (ranges) listed in the dockerfile using the EXPOSE keyword be
47           published.
48         type: boolean
49         default: false
50         required: false
51       publish_ports:
52         description: >-
53           List of ports mappings from source (Docker container) to target (host) ports to publish.
54         type: list
55         entry_schema: PortSpec
56         required: false
57       expose_ports:
58         description: >-
59           List of ports mappings from source (Docker container) to expose to other Docker containers
60           (not accessible outside host).
61         type: list
62         entry_schema: PortSpec
63         required: false
64       volumes:
65         description: >-
66           The dockerfile VOLUME command which is used to enable access from the Docker container to
67           a directory on the host machine.
68         type: list
69         entry_schema: string
70         required: false
71       # ARIA NOTE: these are missing in the spec
72       host_id:
73         description: >-
74           The optional identifier of an existing host resource that should be used to run this
75           container on.
76         type: string
77         required: false
78       volume_id:
79         description: >-
80           The optional identifier of an existing storage volume (resource) that should be used to
81           create the container's mount point(s) on.
82         type: string
83         required: false
84
85   # ARIA NOTE: missing in spec
86   tosca.capabilities.Docker.Link:
87     derived_from: tosca.capabilities.Root
88     description: This is a capability that would mimic the Docker â€“link feature
89
90 node_types:
91
92   tosca.nodes.Database.MySQL:
93     _extensions:
94       specification: tosca-simple-1.0
95       specification_section: 8.3.1
96     derived_from: tosca.nodes.Database
97     requirements:
98       - host:
99           capability: tosca.capabilities.Container # ARIA NOTE: missing in spec
100           node: tosca.nodes.DBMS.MySQL
101
102   tosca.nodes.DBMS.MySQL:
103     _extensions:
104       specification: tosca-simple-1.0
105       specification_section: 8.3.2
106     derived_from: tosca.nodes.DBMS
107     properties:
108       port:
109         description: reflect the default MySQL server port
110         type: integer # AIRA NOTE: missing in spec
111         default: 3306
112       root_password:
113         # MySQL requires a root_password for configuration
114         # Override parent DBMS definition to make this property required
115         type: string # AIRA NOTE: missing in spec
116         required: true
117     capabilities:
118       # Further constrain the 'host' capability to only allow MySQL databases
119       host:
120         type: tosca.capabilities.Container # ARIA NOTE: missing in spec
121         valid_source_types: [ tosca.nodes.Database.MySQL ]
122
123   tosca.nodes.WebServer.Apache:
124     _extensions:
125       specification: tosca-simple-1.0
126       specification_section: 8.3.3
127     derived_from: tosca.nodes.WebServer
128
129   tosca.nodes.WebApplication.WordPress:
130     _extensions:
131       specification: tosca-simple-1.0
132       specification_section: 8.3.4
133     derived_from: tosca.nodes.WebApplication
134     properties:
135       admin_user:
136         type: string
137         required: false # ARIA NOTE: missing in spec
138       admin_password:
139         type: string
140         required: false # ARIA NOTE: missing in spec
141       db_host:
142         type: string
143         required: false # ARIA NOTE: missing in spec
144     requirements:
145       - database_endpoint:
146           capability: tosca.capabilities.Endpoint.Database
147           node: tosca.nodes.Database
148           relationship: tosca.relationships.ConnectsTo
149
150   tosca.nodes.WebServer.Nodejs:
151     _extensions:
152       specification: tosca-simple-1.0
153       specification_section: 8.3.5
154     derived_from: tosca.nodes.WebServer
155     properties:
156       # Property to supply the desired implementation in the Github repository
157       github_url:
158         required: false
159         type: string
160         description: location of the application on the github.
161         default: https://github.com/mmm/testnode.git
162     interfaces:
163       Standard:
164         inputs:
165           github_url:
166             type: string
167
168   tosca.nodes.Container.Application.Docker:
169     _extensions:
170       specification: tosca-simple-1.0
171       specification_section: 8.3.6
172     derived_from: tosca.nodes.Container.Application
173     requirements:
174       - host:
175           capability: tosca.capabilities.Container.Docker
176       - database_link: # ARIA NOTE: missing in spec
177           capability: tosca.capabilities.Docker.Link