summaryrefslogtreecommitdiffstats
path: root/azure/aria/aria-extension-cloudify/src/aria/examples/tosca-simple-1.0/use-cases/non-normative-types.yaml
blob: da89dcb79d2c073ce75510a2716c50b4b123fb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
artifact_types:

  tosca.artifacts.Deployment.Image.Container.Docker:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.1.1
    derived_from: tosca.artifacts.Deployment.Image
    description: Docker Container Image

  tosca.artifacts.Deployment.Image.VM.ISO:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.1.2
    derived_from: tosca.artifacts.Deployment.Image.VM
    description: Virtual Machine (VM) image in ISO disk format
    mime_type: application/octet-stream
    file_ext: [ iso ]

  tosca.artifacts.Deployment.Image.VM.QCOW2:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.1.3
    derived_from: tosca.artifacts.Deployment.Image.VM
    description: Virtual Machine (VM) image in QCOW v2 standard disk format
    mime_type: application/octet-stream
    file_ext: [ qcow2 ]

capability_types:

  tosca.capabilities.Container.Docker:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.2.1
    derived_from: tosca.capabilities.Container
    description: The type indicates capabilities of a Docker runtime environment (client).
    properties:
      version:
        description: >-
          The Docker version capability (i.e., the versions supported by the capability).
        type: list
        required: false
        entry_schema: version
      publish_all:
        description: >-
          Indicates that all ports (ranges) listed in the dockerfile using the EXPOSE keyword be
          published.
        type: boolean
        default: false
        required: false
      publish_ports:
        description: >-
          List of ports mappings from source (Docker container) to target (host) ports to publish.
        type: list
        entry_schema: PortSpec
        required: false
      expose_ports:
        description: >-
          List of ports mappings from source (Docker container) to expose to other Docker containers
          (not accessible outside host).
        type: list
        entry_schema: PortSpec
        required: false
      volumes:
        description: >-
          The dockerfile VOLUME command which is used to enable access from the Docker container to
          a directory on the host machine.
        type: list
        entry_schema: string
        required: false
      # ARIA NOTE: these are missing in the spec
      host_id:
        description: >-
          The optional identifier of an existing host resource that should be used to run this
          container on.
        type: string
        required: false
      volume_id:
        description: >-
          The optional identifier of an existing storage volume (resource) that should be used to
          create the container's mount point(s) on.
        type: string
        required: false

  # ARIA NOTE: missing in spec
  tosca.capabilities.Docker.Link:
    derived_from: tosca.capabilities.Root
    description: This is a capability that would mimic the Docker –link feature

node_types:

  tosca.nodes.Database.MySQL:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.1
    derived_from: tosca.nodes.Database
    requirements:
      - host:
          capability: tosca.capabilities.Container # ARIA NOTE: missing in spec
          node: tosca.nodes.DBMS.MySQL

  tosca.nodes.DBMS.MySQL:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.2
    derived_from: tosca.nodes.DBMS
    properties:
      port:
        description: reflect the default MySQL server port
        type: integer # AIRA NOTE: missing in spec
        default: 3306
      root_password:
        # MySQL requires a root_password for configuration
        # Override parent DBMS definition to make this property required
        type: string # AIRA NOTE: missing in spec
        required: true
    capabilities:
      # Further constrain the 'host' capability to only allow MySQL databases
      host:
        type: tosca.capabilities.Container # ARIA NOTE: missing in spec
        valid_source_types: [ tosca.nodes.Database.MySQL ]

  tosca.nodes.WebServer.Apache:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.3
    derived_from: tosca.nodes.WebServer

  tosca.nodes.WebApplication.WordPress:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.4
    derived_from: tosca.nodes.WebApplication
    properties:
      admin_user:
        type: string
        required: false # ARIA NOTE: missing in spec
      admin_password:
        type: string
        required: false # ARIA NOTE: missing in spec
      db_host:
        type: string
        required: false # ARIA NOTE: missing in spec
    requirements:
      - database_endpoint:
          capability: tosca.capabilities.Endpoint.Database
          node: tosca.nodes.Database
          relationship: tosca.relationships.ConnectsTo

  tosca.nodes.WebServer.Nodejs:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.5
    derived_from: tosca.nodes.WebServer
    properties:
      # Property to supply the desired implementation in the Github repository
      github_url:
        required: false
        type: string
        description: location of the application on the github.
        default: https://github.com/mmm/testnode.git
    interfaces:
      Standard:
        inputs:
          github_url:
            type: string

  tosca.nodes.Container.Application.Docker:
    _extensions:
      specification: tosca-simple-1.0
      specification_section: 8.3.6
    derived_from: tosca.nodes.Container.Application
    requirements:
      - host:
          capability: tosca.capabilities.Container.Docker
      - database_link: # ARIA NOTE: missing in spec
          capability: tosca.capabilities.Docker.Link