Dynamically generate FQDN hiera entries
These were hardcoded, even though the rest of the network-related bits were already dynamically generated with jinja. Change-Id: I8b9e36cbc355065a9117b0a5c5b46afd6ee25d58 Closes-Bug: #1732457
This commit is contained in:
parent
d8742c1cc8
commit
3b1e644e8e
@ -393,78 +393,20 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
type: json
|
type: json
|
||||||
value:
|
value:
|
||||||
external:
|
{%- for network in networks %}
|
||||||
|
{{network.name_lower}}:
|
||||||
fqdn:
|
fqdn:
|
||||||
list_join:
|
list_join:
|
||||||
- '.'
|
- '.'
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
- - {get_attr: [{{server_resource_name}}, name]}
|
||||||
- external
|
- {{network.name.lower()}}
|
||||||
- {get_param: CloudDomain}
|
- {get_param: CloudDomain}
|
||||||
short:
|
short:
|
||||||
list_join:
|
list_join:
|
||||||
- '.'
|
- '.'
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
- - {get_attr: [{{server_resource_name}}, name]}
|
||||||
- external
|
- {{network.name.lower()}}
|
||||||
internal_api:
|
{%- endfor %}
|
||||||
fqdn:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- internalapi
|
|
||||||
- {get_param: CloudDomain}
|
|
||||||
short:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- internalapi
|
|
||||||
storage:
|
|
||||||
fqdn:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- storage
|
|
||||||
- {get_param: CloudDomain}
|
|
||||||
short:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- storage
|
|
||||||
storage_mgmt:
|
|
||||||
fqdn:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- storagemgmt
|
|
||||||
- {get_param: CloudDomain}
|
|
||||||
short:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- storagemgmt
|
|
||||||
tenant:
|
|
||||||
fqdn:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- tenant
|
|
||||||
- {get_param: CloudDomain}
|
|
||||||
short:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- tenant
|
|
||||||
management:
|
|
||||||
fqdn:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- management
|
|
||||||
- {get_param: CloudDomain}
|
|
||||||
short:
|
|
||||||
list_join:
|
|
||||||
- '.'
|
|
||||||
- - {get_attr: [{{server_resource_name}}, name]}
|
|
||||||
- management
|
|
||||||
ctlplane:
|
ctlplane:
|
||||||
fqdn:
|
fqdn:
|
||||||
list_join:
|
list_join:
|
||||||
@ -604,13 +546,10 @@ resources:
|
|||||||
tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: LoggingSources}
|
tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: LoggingSources}
|
||||||
tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: LoggingGroups}
|
tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: LoggingGroups}
|
||||||
tripleo::clouddomain: {get_param: CloudDomain}
|
tripleo::clouddomain: {get_param: CloudDomain}
|
||||||
fqdn_internal_api: {get_attr: [NetHostMap, value, internal_api, fqdn]}
|
{%- for network in networks %}
|
||||||
fqdn_storage: {get_attr: [NetHostMap, value, storage, fqdn]}
|
fqdn_{{network.name_lower}}: {get_attr: [NetHostMap, value, {{network.name_lower}}, fqdn]}
|
||||||
fqdn_storage_mgmt: {get_attr: [NetHostMap, value, storage_mgmt, fqdn]}
|
{%- endfor %}
|
||||||
fqdn_tenant: {get_attr: [NetHostMap, value, tenant, fqdn]}
|
|
||||||
fqdn_management: {get_attr: [NetHostMap, value, management, fqdn]}
|
|
||||||
fqdn_ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
|
fqdn_ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
|
||||||
fqdn_external: {get_attr: [NetHostMap, value, external, fqdn]}
|
|
||||||
fqdn_canonical: {get_attr: [NetHostMap, value, canonical, fqdn]}
|
fqdn_canonical: {get_attr: [NetHostMap, value, canonical, fqdn]}
|
||||||
|
|
||||||
# Resource for site-specific injection of root certificate
|
# Resource for site-specific injection of root certificate
|
||||||
|
Loading…
Reference in New Issue
Block a user