f1a12c1784e0b18049e70cc538c6acd71775b7a2
[functest.git] / functest / opnfv_tests / openstack / rally / scenario / templates / server_with_ports.yaml.template
1 heat_template_version: 2013-05-23
2
3 parameters:
4   # set all correct defaults for parameters before launch test
5   public_net:
6     type: string
7     default: public
8   image:
9     type: string
10     default: cirros-0.5.1-x86_64-uec
11   flavor:
12     type: string
13     default: m1.tiny
14   cidr:
15     type: string
16     default: 11.11.11.0/24
17
18 resources:
19   server:
20     type: OS::Nova::Server
21     properties:
22       image: {get_param: image}
23       flavor: {get_param: flavor}
24       networks:
25         - port: { get_resource: server_port }
26
27   router:
28     type: OS::Neutron::Router
29     properties:
30       external_gateway_info:
31         network: {get_param: public_net}
32
33   router_interface:
34     type: OS::Neutron::RouterInterface
35     properties:
36       router_id: { get_resource: router }
37       subnet_id: { get_resource: private_subnet }
38
39   private_net:
40     type: OS::Neutron::Net
41
42   private_subnet:
43     type: OS::Neutron::Subnet
44     properties:
45       network: { get_resource: private_net }
46       cidr: {get_param: cidr}
47
48   port_security_group:
49     type: OS::Neutron::SecurityGroup
50     properties:
51       name: default_port_security_group
52       description: >
53         Default security group assigned to port. The neutron default group is not
54         used because neutron creates several groups with the same name=default and
55         nova cannot chooses which one should it use.
56
57   server_port:
58     type: OS::Neutron::Port
59     properties:
60       network: {get_resource: private_net}
61       fixed_ips:
62         - subnet: { get_resource: private_subnet }
63       security_groups:
64         - { get_resource: port_security_group }