blob: 3a972a81e0e7184aac72889e83fdca7cb0f32538 (
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
|
tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
template_name: tosca-normative-types-compute
template_author: TOSCA TC
template_version: 1.0.0.wd03-SNAPSHOT
description: Contains the normative types definition.
imports:
- "tosca-normative-types-root:1.0.0.wd03-SNAPSHOT"
node_types:
# Infrastructure components
tosca.nodes.Compute:
derived_from: tosca.nodes.Root
description: >
Represents a real or virtual machine or ‘server’. Informations specified on the Compute
node will be used to find the machine that fits the given requirements in the cloud
available machines. If no sizing informations are specified the cloud’s provider default
machine will be used. It is strongly recommended to specify the required cpus and memory
at least.
tags:
icon: /images/compute.png
properties:
num_cpus:
type: integer
required: false
constraints:
- greater_than: 0
description: Number of (actual or virtual) CPUs associated with the Compute node.
mem_size:
type: integer
required: false
constraints:
- greater_than: 0
description: Size of memory, in Megabytes (MB), available to applications running on the Compute node.
disk_size:
type: integer
required: false
constraints:
- greater_than: 0
description: Size of the local disk, in Gigabytes (GB), available to applications running on the Compute node.
os_arch:
type: string
constraints:
- valid_values: ["x86_32", "x86_64"]
description: The host Operating System (OS) architecture.
os_type:
type: string
constraints:
- valid_values: ["linux", "aix", "mac os", "windows"]
description: The host Operating System (OS) type.
os_distribution:
type: string
required: false
description: The host Operating System (OS) distribution.
os_version:
type: string
required: false
description: The host Operating System version.
attributes:
ip_address:
type: string
description: >
The primary IP address assigned by the cloud provider that applications may use to access the Compute node.
Note: This is used by the platform provider to convey the primary address used to access the compute node. Future working drafts will address implementations that support floating or multiple IP addresses.
requirements:
network:
type: tosca.capabilities.Connectivity
lower_bound: 0
upper_bound: unbounded
capabilities:
host:
type: tosca.capabilities.Container
properties:
valid_node_types: [tosca.nodes.SoftwareComponent]
attach: tosca.capabilities.Attachment
scalable: tosca.capabilities.Scalable
|