Fix BlockStorageAttachment bug when translate compute node
[parser.git] / tosca2heat / heat-translator / translator / tests / data / hot_output / hot_nfv_sample.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Template for deploying a single server with predefined properties.
5
6 parameters: {}
7 resources:
8   VDU1:
9     type: OS::Nova::Server
10     properties:
11       flavor: m1.medium
12       image: rhel-6.5-test-image
13       networks:
14       - port: { get_resource: CP1 }
15       user_data_format: SOFTWARE_CONFIG
16     depends_on:
17       - VDU2
18       - BlockStorage
19
20   VDU2:
21     type: OS::Nova::Server
22     properties:
23       flavor: m1.medium
24       image: rhel-6.5-test-image
25       networks:
26       - port: { get_resource: CP2 }
27       user_data_format: SOFTWARE_CONFIG
28
29   BlockStorage:
30     type: OS::Cinder::Volume
31     properties:
32       size: 10
33
34   tosca.relationships.attachesto_1:
35     type: OS::Cinder::VolumeAttachment
36     properties:
37       instance_uuid:
38         get_resource: VDU1
39       mountpoint: /data
40       volume_id:
41         get_resource: BlockStorage
42
43   CP1:
44     type: OS::Neutron::Port
45     properties:
46       fixed_ips:
47         - ip_address: '192.168.0.55'
48       network: { get_resource: VL1 }
49
50   CP2:
51     type: OS::Neutron::Port
52     properties:
53       fixed_ips:
54         - ip_address: '192.168.0.56'
55       network: { get_resource: VL1 }
56
57   VL1:
58     type: OS::Neutron::Net
59     properties:
60       name: test_net
61       value_specs:
62         provider:network_type: vxlan
63         provider:segmentation_id: 100
64
65   VL1_subnet:
66     type: OS::Neutron::Subnet
67     properties:
68       ip_version: 4
69       allocation_pools:
70       - end: 192.168.0.200
71         start: 192.168.0.50
72       gateway_ip: 192.168.0.1
73       cidr: 192.168.0.0/24
74       network: { get_resource: VL1 }
75
76 outputs: {}
77