Added floating ip for interface machine.

This commit is contained in:
Egon Rijpkema 2018-07-31 15:11:36 +02:00
parent 0796ce6311
commit ca112f6977
1 changed files with 23 additions and 9 deletions

View File

@ -38,31 +38,45 @@ parameters:
description: Size (GB) of the volume for each compute node description: Size (GB) of the volume for each compute node
resources: resources:
internal_net: internal_net:
type: OS::Neutron::Net type: OS::Neutron::Net
properties: properties:
name: { get_param: internal_net_name } name: {get_param: internal_net_name}
internal_subnet: internal_subnet:
type: OS::Neutron::Subnet type: OS::Neutron::Subnet
properties: properties:
network_id: { get_resource: internal_net } network_id: {get_resource: internal_net}
cidr: { get_param: cidr } cidr: {get_param: cidr}
dns_nameservers: [ "129.125.4.6", "129.125.36.10" ] dns_nameservers: ["129.125.4.6", "129.125.36.10"]
ip_version: 4 ip_version: 4
internal_router: internal_router:
type: OS::Neutron::Router type: OS::Neutron::Router
properties: properties:
external_gateway_info: { network: { get_param: public_net} } external_gateway_info: {network: {get_param: public_net}}
internal_interface: internal_interface:
type: OS::Neutron::RouterInterface type: OS::Neutron::RouterInterface
properties: properties:
router_id: { get_resource: internal_router } router_id: {get_resource: internal_router}
subnet: { get_resource: internal_subnet } subnet: {get_resource: internal_subnet}
public_port:
type: OS::Neutron::Port
properties:
network_id: {get_resource: internal_net}
fixed_ips:
- subnet_id: {get_resource: internal_subnet}
security_groups:
- default
floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: {get_param: public_net}
port_id: {get_resource: public_port}
interface: # User-interface for cluster-operation interface: # User-interface for cluster-operation
type: OS::Nova::Server type: OS::Nova::Server
@ -71,7 +85,7 @@ resources:
image: {get_param: image_name} image: {get_param: image_name}
flavor: {get_param: aux_flavor} flavor: {get_param: aux_flavor}
networks: networks:
- network: {get_resource: internal_net} - port: {get_resource: public_port}
admin: # Machine to run slurm and other admin tools on. admin: # Machine to run slurm and other admin tools on.
type: OS::Nova::Server type: OS::Nova::Server