Fix RoleParameters in tuned-baremetal-ansible.yaml
Though we've role specific parameters we don't seem to honor them. Related: https://bugzilla.redhat.com/1958418 Change-Id: I0946b3f4f48688dd3dc747ae31f48c9676687cbc
This commit is contained in:
parent
2732d826c8
commit
6e236a4e1f
|
@ -45,6 +45,21 @@ parameters:
|
||||||
tags:
|
tags:
|
||||||
- role_specific
|
- role_specific
|
||||||
|
|
||||||
|
resources:
|
||||||
|
RoleParametersValue:
|
||||||
|
type: OS::Heat::Value
|
||||||
|
properties:
|
||||||
|
type: json
|
||||||
|
value:
|
||||||
|
map_replace:
|
||||||
|
- map_replace:
|
||||||
|
- tuned_profile: TunedProfileName
|
||||||
|
tuned_custom_profile: TunedCustomProfile
|
||||||
|
- values: {get_param: [RoleParameters]}
|
||||||
|
- values:
|
||||||
|
TunedProfileName: {get_param: TunedProfileName}
|
||||||
|
TunedCustomProfile: {get_param: TunedCustomProfile}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
description: Role data for tuned
|
description: Role data for tuned
|
||||||
|
@ -54,5 +69,5 @@ outputs:
|
||||||
- include_role:
|
- include_role:
|
||||||
name: tuned
|
name: tuned
|
||||||
ansible_group_vars:
|
ansible_group_vars:
|
||||||
tuned_profile: {get_param: TunedProfileName}
|
tuned_profile: {get_attr: [RoleParametersValue, value, tuned_profile]}
|
||||||
tuned_custom_profile: {get_param: TunedCustomProfile}
|
tuned_custom_profile: {get_attr: [RoleParametersValue, value, tuned_custom_profile]}
|
||||||
|
|
Loading…
Reference in New Issue