8e58fa942da0794856d139b1f4d2d99a81f51673
[parser.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile with 1 server bound to a new network
5
6 topology_template:
7
8   inputs:
9     network_name:
10       type: string
11       description: Network name
12
13   node_templates:
14     my_server:
15       type: tosca.nodes.Compute
16       capabilities:
17         host:
18           properties:
19             disk_size: 10 GB
20             num_cpus: 1
21             mem_size: 512 MB
22         os:
23           properties:
24             architecture: x86_64
25             type: Linux
26             distribution: CirrOS
27             version: 0.3.2
28
29     my_network:
30       type: tosca.nodes.network.Network
31       properties:
32         network_name: { get_input: network_name }
33         ip_version: 4
34         cidr: '192.168.0.0/24'
35         start_ip: '192.168.0.50'
36         end_ip: '192.168.0.200'
37         gateway_ip: '192.168.0.1'
38
39     my_port:
40       type: tosca.nodes.network.Port
41       requirements:
42         - binding: my_server
43         - link: my_network