SNAPS Stack creators can now return SNAPS network creators.
[snaps.git] / snaps / openstack / tests / heat / test_heat_template.yaml
1 heat_template_version: 2015-04-30
2
3 description: Simple template to deploy a single compute instance
4
5 parameters:
6   image_name:
7     type: string
8     label: Image ID
9     description: Image to be used for compute instance
10     default: heat_utils_tests
11   flavor_name:
12     type: string
13     label: Instance Type
14     description: Type of instance (flavor) to be used
15     default: m1.small
16   net_name:
17     type: string
18     label: Test network name
19     description: The name of the stack's network
20     default: test_net
21   subnet_name:
22     type: string
23     label: Test subnet name
24     description: The name of the stack's subnet
25     default: test_subnet
26
27 resources:
28   private_net:
29     type: OS::Neutron::Net
30     properties:
31       name: { get_param: net_name }
32
33   private_subnet:
34     type: OS::Neutron::Subnet
35     properties:
36       name: { get_param: subnet_name }
37       network_id: { get_resource: private_net }
38       cidr: 10.0.0.0/24
39
40   server1_port:
41     type: OS::Neutron::Port
42     properties:
43       network_id: { get_resource: private_net }
44       fixed_ips:
45         - subnet_id: { get_resource: private_subnet }
46
47   my_instance:
48     type: OS::Nova::Server
49     properties:
50       image: { get_param: image_name }
51       flavor: { get_param: flavor_name }
52       networks:
53         - port: { get_resource: server1_port }