From 9536a5f312493f4b9797583d4c4bb52d28c57770 Mon Sep 17 00:00:00 2001 From: ramishra Date: Mon, 10 May 2021 13:57:34 +0530 Subject: [PATCH] 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 (cherry picked from commit 6e236a4e1fd7443a4ff0043cc0392c63692f81fb) --- deployment/tuned/tuned-baremetal-ansible.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/deployment/tuned/tuned-baremetal-ansible.yaml b/deployment/tuned/tuned-baremetal-ansible.yaml index b1e959e750..bddfe32923 100644 --- a/deployment/tuned/tuned-baremetal-ansible.yaml +++ b/deployment/tuned/tuned-baremetal-ansible.yaml @@ -48,6 +48,21 @@ parameters: tags: - 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: role_data: description: Role data for tuned @@ -57,5 +72,5 @@ outputs: - include_role: name: tuned ansible_group_vars: - tuned_profile: {get_param: TunedProfileName} - tuned_custom_profile: {get_param: TunedCustomProfile} + tuned_profile: {get_attr: [RoleParametersValue, value, tuned_profile]} + tuned_custom_profile: {get_attr: [RoleParametersValue, value, tuned_custom_profile]}