openstack-helm/tools/deployment/common/heat-public-net-deployment.yaml
Vladimir Kozhukalov 96f2a1fcec Pre-setup provider gateway using deploy-env role
Recently we refactored the deploy-env role which
among other things can deploy Openstack provider
network gateway.

Depends-On: I41f0353b286f817cb562b3bd59992e4baa473568
Change-Id: Iece2cc83c68cc282389f8380ceebeebf17f788fb
2024-03-26 16:57:38 -05:00

60 lines
1.1 KiB
YAML

heat_template_version: 2016-10-14
parameters:
network_name:
type: string
default: public
physical_network_name:
type: string
default: public
subnet_name:
type: string
default: public
subnet_cidr:
type: string
default: 172.24.4.0/24
subnet_gateway:
type: string
default: 172.24.4.1
allocation_pool_start:
type: string
default: 172.24.4.10
allocation_pool_end:
type: string
default: 172.24.4.254
resources:
public_net:
type: OS::Neutron::ProviderNet
properties:
name:
get_param: network_name
router_external: true
physical_network:
get_param: physical_network_name
network_type: flat
private_subnet:
type: OS::Neutron::Subnet
properties:
name:
get_param: subnet_name
network:
get_resource: public_net
cidr:
get_param: subnet_cidr
gateway_ip:
get_param: subnet_gateway
enable_dhcp: false
dns_nameservers:
- get_param: subnet_gateway
allocation_pools:
- start: {get_param: allocation_pool_start}
end: {get_param: allocation_pool_end}