Select Git revision
-
Martin Kristensen Eide authoredMartin Kristensen Eide authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
base.yaml 1.14 KiB
# The documentation for Openstack Heat resources were rappidly
# used: https://docs.openstack.org/heat/rocky/template_guide/openstack.html
heat_template_version: 2018-08-31
description: >
Template for creating the base network for a project
parameters:
project_name:
type: string
description: Prosjekt Navn
resources:
heat_network:
type: OS::Neutron::Net
properties:
admin_state_up: true
name:
list_join: [ '_', [ { get_param: project_name }, 'NET' ] ]
heat_router:
type: OS::Neutron::Router
properties:
admin_state_up: True
name:
list_join: [ '_', [ { get_param: project_name }, 'Router' ] ]
external_gateway_info: { network: ntnu-internal}
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: heat_router }
subnet: { get_resource: heat_network_subnet }
heat_network_subnet:
type: "OS::Neutron::Subnet"
properties:
cidr: 192.168.0.0/24
gateway_ip: "192.168.0.1"
ip_version: 4
network: { get_resource: heat_network }
allocation_pools: [{"start": "192.168.0.4", "end": "192.168.0.254"}]