summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/main.yml
diff options
context:
space:
mode:
authorJiri Mencak <jmencak@redhat.com>2017-08-15 13:57:59 +0200
committerJiri Mencak <jmencak@redhat.com>2017-08-15 13:57:59 +0200
commit423dc61f32ef70a4cd33161f1213138662f5f734 (patch)
treeceff807bb96513f20a8a845a0eb01925beb259ed /roles/openshift_node/tasks/main.yml
parent2bc68321f54ed405819d168a4930c75d9ab8fadc (diff)
downloadopenshift-423dc61f32ef70a4cd33161f1213138662f5f734.tar.gz
openshift-423dc61f32ef70a4cd33161f1213138662f5f734.tar.bz2
openshift-423dc61f32ef70a4cd33161f1213138662f5f734.tar.xz
openshift-423dc61f32ef70a4cd33161f1213138662f5f734.zip
Setup tuned profiles in /etc/tuned
Diffstat (limited to 'roles/openshift_node/tasks/main.yml')
-rw-r--r--roles/openshift_node/tasks/main.yml18
1 files changed, 4 insertions, 14 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 3353a22e3..81456eac9 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -70,25 +70,15 @@
- openshift_disable_swap | default(true) | bool
# End Disable Swap Block
-# We have to add tuned-profiles in the same transaction otherwise we run into depsolving
-# problems because the rpms don't pin the version properly. This was fixed in 3.1 packaging.
- name: Install Node package
package:
- name: "{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }},tuned-profiles-{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }}"
+ name: "{{ openshift.common.service_type }}-node{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }}"
state: present
when: not openshift.common.is_containerized | bool
-- name: Check for tuned package
- command: rpm -q tuned
- args:
- warn: no
- register: tuned_installed
- changed_when: false
- failed_when: false
-
-- name: Set atomic-guest tuned profile
- command: "tuned-adm profile atomic-guest"
- when: tuned_installed.rc == 0 and openshift.common.is_atomic | bool
+- name: setup tuned
+ include: tuned.yml
+ static: yes
- name: Install sdn-ovs package
package: