Only pass distinct services to enabled_services list
The list that was passed contained repeated services, which was problematic if we wanted to use this list in puppet. So instead we pass a list with the unique names. Change-Id: Ib5eb0c5b59a9a50344d22c258ca461e8f1e52c86
This commit is contained in:
@@ -116,7 +116,10 @@ resources:
|
|||||||
map_merge:
|
map_merge:
|
||||||
- tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: logging_sources}
|
- tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: logging_sources}
|
||||||
- tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: logging_groups}
|
- tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: logging_groups}
|
||||||
- enabled_services: {get_param: enabled_services}
|
- enabled_services:
|
||||||
|
yaql:
|
||||||
|
expression: $.data.distinct()
|
||||||
|
data: {get_param: enabled_services}
|
||||||
# This writes out a mapping of service_name_enabled: 'true'
|
# This writes out a mapping of service_name_enabled: 'true'
|
||||||
# For any services not enabled, hiera foo_enabled will
|
# For any services not enabled, hiera foo_enabled will
|
||||||
# return nil, as it's undefined
|
# return nil, as it's undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user