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:
|
||||
type: json
|
||||
value:
|
||||
external:
|
||||
{%- for network in networks %}
|
||||
{{network.name_lower}}:
|
||||
fqdn:
|
||||
list_join:
|
||||
- '.'
|
||||
- - {get_attr: [{{server_resource_name}}, name]}
|
||||
- external
|
||||
- {{network.name.lower()}}
|
||||
- {get_param: CloudDomain}
|
||||
short:
|
||||
list_join:
|
||||
- '.'
|
||||
- - {get_attr: [{{server_resource_name}}, name]}
|
||||
- external
|
||||
internal_api:
|
||||
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
|
||||
- {{network.name.lower()}}
|
||||
{%- endfor %}
|
||||
ctlplane:
|
||||
fqdn:
|
||||
list_join:
|
||||
@ -604,13 +546,10 @@ resources:
|
||||
tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: LoggingSources}
|
||||
tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: LoggingGroups}
|
||||
tripleo::clouddomain: {get_param: CloudDomain}
|
||||
fqdn_internal_api: {get_attr: [NetHostMap, value, internal_api, fqdn]}
|
||||
fqdn_storage: {get_attr: [NetHostMap, value, storage, fqdn]}
|
||||
fqdn_storage_mgmt: {get_attr: [NetHostMap, value, storage_mgmt, fqdn]}
|
||||
fqdn_tenant: {get_attr: [NetHostMap, value, tenant, fqdn]}
|
||||
fqdn_management: {get_attr: [NetHostMap, value, management, fqdn]}
|
||||
{%- for network in networks %}
|
||||
fqdn_{{network.name_lower}}: {get_attr: [NetHostMap, value, {{network.name_lower}}, fqdn]}
|
||||
{%- endfor %}
|
||||
fqdn_ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
|
||||
fqdn_external: {get_attr: [NetHostMap, value, external, fqdn]}
|
||||
fqdn_canonical: {get_attr: [NetHostMap, value, canonical, fqdn]}
|
||||
|
||||
# Resource for site-specific injection of root certificate
|
||||
|
Loading…
Reference in New Issue
Block a user