diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-14 21:16:01 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-14 21:16:01 +0000 |
commit | 8a111d6d0f56cc53dd30c292e00b519c456e50e6 (patch) | |
tree | c99abd5f39bdea3145ba13663571ddf34d94a779 | |
parent | 5ed6cc394b7641251c2f6c80bfdfc7c228a2a036 (diff) | |
parent | e9ad7ba48f6db44c51c5c373f2a2a893a9d8c02f (diff) |
Merge "Role Specific parameters for neutron-sriov-agent service"
-rw-r--r-- | puppet/services/neutron-sriov-agent.yaml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/puppet/services/neutron-sriov-agent.yaml b/puppet/services/neutron-sriov-agent.yaml index c124d1e6..090640ed 100644 --- a/puppet/services/neutron-sriov-agent.yaml +++ b/puppet/services/neutron-sriov-agent.yaml @@ -65,6 +65,24 @@ resources: RoleName: {get_param: RoleName} RoleParameters: {get_param: RoleParameters} + # Merging role-specific parameters (RoleParameters) with the default parameters. + # RoleParameters will have the precedence over the default parameters. + RoleParametersValue: + type: OS::Heat::Value + properties: + type: json + value: + map_replace: + - map_replace: + - neutron::agents::ml2::sriov::physical_device_mappings: NeutronPhysicalDevMappings + neutron::agents::ml2::sriov::exclude_devices: NeutronExcludeDevices + tripleo::host::sriov::number_of_vfs: NeutronSriovNumVFs + - values: {get_param: [RoleParameters]} + - values: + NeutronPhysicalDevMappings: {get_param: NeutronPhysicalDevMappings} + NeutronExcludeDevices: {get_param: NeutronExcludeDevices} + NeutronSriovNumVFs: {get_param: NeutronSriovNumVFs} + outputs: role_data: description: Role data for the Neutron SR-IOV nic agent service. @@ -73,8 +91,6 @@ outputs: config_settings: map_merge: - get_attr: [NeutronBase, role_data, config_settings] - - neutron::agents::ml2::sriov::physical_device_mappings: {get_param: NeutronPhysicalDevMappings} - neutron::agents::ml2::sriov::exclude_devices: {get_param: NeutronExcludeDevices} - tripleo::host::sriov::number_of_vfs: {get_param: NeutronSriovNumVFs} + - get_attr: [RoleParametersValue, value] step_config: | include ::tripleo::profile::base::neutron::sriov |