From dc8a61b7b4c2b8e0e528578c5be18fdec40d7a81 Mon Sep 17 00:00:00 2001 From: Sven Anderson Date: Mon, 15 Jan 2018 13:19:18 +0100 Subject: [PATCH] Replace hardcoded profile name with _TUNED_PROFILE_NAME_ The *-variables.conf file for tuned is hardcoded for the profile "cpu-partitioning", which makes other profiles fail, that also need the isolated_cores variable. Change-Id: Iaeedfe5d7c501453fd2039b81c1603eff6125ebf --- extraconfig/pre_network/ansible_host_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extraconfig/pre_network/ansible_host_config.yaml b/extraconfig/pre_network/ansible_host_config.yaml index 2d862613c9..9a0b54a9c2 100644 --- a/extraconfig/pre_network/ansible_host_config.yaml +++ b/extraconfig/pre_network/ansible_host_config.yaml @@ -26,7 +26,7 @@ - block: - name: Tune-d Configuration lineinfile: - dest: /etc/tuned/cpu-partitioning-variables.conf + dest: /etc/tuned/{{ _TUNED_PROFILE_NAME_ }}-variables.conf regexp: '^isolated_cores=.*' line: 'isolated_cores={{ _TUNED_CORES_ }}' when: _TUNED_CORES_|default("") != ""