Provide a way to know the boostrap_nodeid IP
Currently it is possible to know what is the hostname of the boostrap nodeid but not its IP. Since depending on the use case the use of the IP might be needed, a way to have access to this information should be provided. Change-Id: I9d0a7ee7de2088ddb87e0d8a8ae2b3ac75b0e78d
This commit is contained in:
parent
61fecfc575
commit
d7eaea3b5f
@ -4,6 +4,8 @@ description: 'Bootstrap Config'
|
|||||||
parameters:
|
parameters:
|
||||||
bootstrap_nodeid:
|
bootstrap_nodeid:
|
||||||
type: string
|
type: string
|
||||||
|
bootstrap_nodeid_ip:
|
||||||
|
type: string
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -13,6 +15,7 @@ resources:
|
|||||||
config:
|
config:
|
||||||
bootstrap_host:
|
bootstrap_host:
|
||||||
bootstrap_nodeid: {get_param: bootstrap_nodeid}
|
bootstrap_nodeid: {get_param: bootstrap_nodeid}
|
||||||
|
bootstrap_nodeid_ip: {get_param: bootstrap_nodeid_ip}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
config_id:
|
config_id:
|
||||||
|
@ -745,6 +745,7 @@ resources:
|
|||||||
type: OS::TripleO::BootstrapNode::SoftwareConfig
|
type: OS::TripleO::BootstrapNode::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
bootstrap_nodeid: {get_attr: [Controller, resource.0.hostname]}
|
bootstrap_nodeid: {get_attr: [Controller, resource.0.hostname]}
|
||||||
|
bootstrap_nodeid_ip: {get_attr: [Controller, resource.0.ip_address]}
|
||||||
|
|
||||||
ControllerBootstrapNodeDeployment:
|
ControllerBootstrapNodeDeployment:
|
||||||
type: OS::Heat::StructuredDeployments
|
type: OS::Heat::StructuredDeployments
|
||||||
|
@ -4,6 +4,8 @@ description: 'Bootstrap Config Puppet'
|
|||||||
parameters:
|
parameters:
|
||||||
bootstrap_nodeid:
|
bootstrap_nodeid:
|
||||||
type: string
|
type: string
|
||||||
|
bootstrap_nodeid_ip:
|
||||||
|
type: string
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -16,6 +18,7 @@ resources:
|
|||||||
bootstrap_node:
|
bootstrap_node:
|
||||||
mapped_data:
|
mapped_data:
|
||||||
bootstrap_nodeid: {get_param: bootstrap_nodeid}
|
bootstrap_nodeid: {get_param: bootstrap_nodeid}
|
||||||
|
bootstrap_nodeid_ip: {get_param: bootstrap_nodeid_ip}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
config_id:
|
config_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user