Browse Source

Fix heat stacks with ports

Change-Id: I3b9ed6a7789c3dc9f9836720756bc9c1093a1b9b
Closes-Bug: 1884523
changes/56/737256/1
Sergey Galkin 1 week ago
parent
commit
a0b3cc09d0
2 changed files with 32 additions and 0 deletions
  1. +16
    -0
      samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template
  2. +16
    -0
      samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template

+ 16
- 0
samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template View File

@@ -19,6 +19,9 @@ parameters:
default: 5
constraints:
- range: {min: 1}
cidr:
type: string
default: 11.11.11.0/24


resources:
@@ -30,6 +33,19 @@ resources:
properties:
image: { get_param: image }
flavor: { get_param: flavor }
networks:
- port: { get_resource: server_port }
server_port:
type: OS::Neutron::Port
properties:
network_id: {get_resource: private_net}
private_net:
type: OS::Neutron::Net
private_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: private_net }
cidr: {get_param: cidr}
min_size: 1
desired_capacity: 3
max_size: { get_param: max_size }


+ 16
- 0
samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template View File

@@ -19,6 +19,9 @@ parameters:
constraints:
- range: { min: 1, max: 1024 }
description: must be between 1 and 1024 Gb.
cidr:
type: string
default: 11.11.11.0/24

resources:
server:
@@ -26,6 +29,19 @@ resources:
properties:
image: {get_param: image}
flavor: {get_param: flavor}
networks:
- port: { get_resource: server_port }
server_port:
type: OS::Neutron::Port
properties:
network_id: {get_resource: private_net}
private_net:
type: OS::Neutron::Net
private_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: private_net }
cidr: {get_param: cidr}
cinder_volume:
type: OS::Cinder::Volume
properties:


Loading…
Cancel
Save