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:
parent
4d6dcc2294
commit
589574c6ad
@ -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
|
||||
|
35
templates/undercloud-floating-existing.yaml
Normal file
35
templates/undercloud-floating-existing.yaml
Normal 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
|
17
templates/undercloud-floating-none.yaml
Normal file
17
templates/undercloud-floating-none.yaml
Normal 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'
|
Loading…
Reference in New Issue
Block a user