Give option of using existing or no undercloud floating ip

Likely users will want to use an existing floating IP so that it is
stable for SSH or ansible playbooks. This allows env.yaml to specify an
existing (or no) floating ip.
This commit is contained in:
Steve Baker 2015-11-24 09:51:14 +13:00
parent 4d6dcc2294
commit 589574c6ad
3 changed files with 65 additions and 0 deletions

View File

@ -22,3 +22,16 @@ parameters:
external_net: external
public_net_name: public
provision_net_name: provision
# Uncomment and customize the following to use an existing floating ip
# parameter_defaults:
# undercloud_floating_ip_id: 'uuid of floating ip'
# undercloud_floating_ip: 'address of floating ip'
#
# resource_registry:
# OS::OVB::UndercloudFloating: templates/undercloud-floating-existing.yaml
# Uncomment the following to use no floating ip
# resource_registry:
# OS::OVB::UndercloudFloating: templates/undercloud-floating-none.yaml

View File

@ -0,0 +1,35 @@
heat_template_version: 2015-04-30
# Template that creates a new floating IP to access the undercloud
parameters:
external_net:
type: string
default: external
description: An external network from which floating ips can be provisioned
undercloud_port:
type: string
description: Port id of undercloud server for floating ip
undercloud_floating_ip_id:
type: string
description: ID of existing floating ip to use.
undercloud_floating_ip:
type: string
description: Address of existing floating ip to use.
default: ''
resources:
undercloud_floating_ip_assoc:
type: OS::Neutron::FloatingIPAssociation
properties:
floatingip_id: {get_param: undercloud_floating_ip_id}
port_id: {get_param: undercloud_port}
outputs:
undercloud_host:
value:
get_param: undercloud_floating_ip

View File

@ -0,0 +1,17 @@
heat_template_version: 2015-04-30
# Template that creates a new floating IP to access the undercloud
parameters:
external_net:
type: string
default: external
description: An external network from which floating ips can be provisioned
undercloud_port:
type: string
description: Port id of undercloud server for floating ip
outputs:
undercloud_host:
value: 'none'