6267a33ffe95cd1bb2bd9f02711a5d01197be3a7
[parser.git] /
1 heat_template_version: 2013-05-23
2
3 description: >
4   TOSCA simple profile with 1 server bound to a new network
5
6 parameters:
7   network_name:
8     type: string
9     description: Network name
10     default: private_net
11
12 resources:
13   my_server:
14     type: OS::Nova::Server
15     properties:
16       flavor: m1.small
17       image: cirros-0.3.2-x86_64-uec
18       key_name: userkey
19       networks:
20       - port: { get_resource: my_port }
21       user_data_format: SOFTWARE_CONFIG
22
23   my_network:
24     type: OS::Neutron::Net
25     properties:
26       name:
27         get_param: network_name
28
29   my_network_subnet:
30     type: OS::Neutron::Subnet
31     properties:
32       allocation_pools:
33       - end: 192.168.0.200
34         start: 192.168.0.50
35       cidr: 192.168.0.0/24
36       gateway_ip: 192.168.0.1
37       ip_version: 4
38       network: { get_resource: my_network }
39
40   my_port:
41     type: OS::Neutron::Port
42     properties:
43       network: { get_resource: my_network }
44
45 outputs: {}