a9bd125f69
This PS updates the heat templates, reducing the size of the launched vm. In addition cinder is enabled in the ceph dev pipeline, this is possible due to the resources no longer consumed by the test vm. Change-Id: I9efe6fe643c636b660dd54b60dfe7c8785d7fec2
109 lines
2.1 KiB
YAML
109 lines
2.1 KiB
YAML
heat_template_version: '2016-10-14'
|
|
|
|
parameters:
|
|
public_net:
|
|
type: string
|
|
default: public
|
|
|
|
image:
|
|
type: string
|
|
default: Cirros 0.3.5 64-bit
|
|
|
|
ssh_key:
|
|
type: string
|
|
default: heat-vm-key
|
|
|
|
cidr:
|
|
type: string
|
|
default: 10.11.11.0/24
|
|
|
|
resources:
|
|
flavor:
|
|
type: OS::Nova::Flavor
|
|
properties:
|
|
disk: 1
|
|
ram: 64
|
|
vcpus: 1
|
|
|
|
server:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
image:
|
|
get_param: image
|
|
flavor:
|
|
get_resource: flavor
|
|
key_name:
|
|
get_param: ssh_key
|
|
networks:
|
|
- port:
|
|
get_resource: server_port
|
|
user_data_format: RAW
|
|
|
|
router:
|
|
type: OS::Neutron::Router
|
|
properties:
|
|
external_gateway_info:
|
|
network:
|
|
get_param: public_net
|
|
|
|
router_interface:
|
|
type: OS::Neutron::RouterInterface
|
|
properties:
|
|
router_id:
|
|
get_resource: router
|
|
subnet_id:
|
|
get_resource: private_subnet
|
|
|
|
private_net:
|
|
type: OS::Neutron::Net
|
|
|
|
private_subnet:
|
|
type: OS::Neutron::Subnet
|
|
properties:
|
|
network:
|
|
get_resource: private_net
|
|
cidr:
|
|
get_param: cidr
|
|
dns_nameservers:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
|
|
port_security_group:
|
|
type: OS::Neutron::SecurityGroup
|
|
properties:
|
|
name: default_port_security_group
|
|
description: 'Default security group assigned to port.'
|
|
rules:
|
|
- remote_ip_prefix: 0.0.0.0/0
|
|
protocol: tcp
|
|
port_range_min: 22
|
|
port_range_max: 22
|
|
- remote_ip_prefix: 0.0.0.0/0
|
|
protocol: icmp
|
|
|
|
server_port:
|
|
type: OS::Neutron::Port
|
|
properties:
|
|
network:
|
|
get_resource: private_net
|
|
fixed_ips:
|
|
- subnet:
|
|
get_resource: private_subnet
|
|
security_groups:
|
|
- get_resource: port_security_group
|
|
|
|
server_floating_ip:
|
|
type: OS::Neutron::FloatingIP
|
|
properties:
|
|
floating_network:
|
|
get_param: public_net
|
|
port_id:
|
|
get_resource: server_port
|
|
|
|
outputs:
|
|
floating_ip:
|
|
value:
|
|
get_attr:
|
|
- server_floating_ip
|
|
- floating_ip_address
|