summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorDusty Mabe <dusty@dustymabe.com>2016-11-21 14:32:39 -0500
committerDusty Mabe <dusty@dustymabe.com>2016-11-21 14:40:27 -0500
commit81da6efcee3a4426df2fea7a198ccdc61254e30d (patch)
treecd27115fc740f1a27231a8fa97833a1b2fa95758 /roles
parentf5d74f47e0c22c24ca9f34f9a979c730d8e6ffd3 (diff)
downloadopenshift-81da6efcee3a4426df2fea7a198ccdc61254e30d.tar.gz
openshift-81da6efcee3a4426df2fea7a198ccdc61254e30d.tar.bz2
openshift-81da6efcee3a4426df2fea7a198ccdc61254e30d.tar.xz
openshift-81da6efcee3a4426df2fea7a198ccdc61254e30d.zip
Only run tuned-adm if tuned exists.
Fedora Atomic Host does not have tuned installed. Fixes #2809
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node/tasks/main.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 6022694bc..14d03bb44 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -38,9 +38,15 @@
action: "{{ ansible_pkg_mgr }} 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) }} state=present"
when: not openshift.common.is_containerized | bool
+- name: Check for tuned package
+ command: rpm -q tuned
+ register: tuned_installed
+ changed_when: false
+ failed_when: false
+
- name: Set atomic-guest tuned profile
command: "tuned-adm profile atomic-guest"
- when: openshift.common.is_atomic | bool
+ when: tuned_installed.rc == 0 and openshift.common.is_atomic | bool
- name: Install sdn-ovs package
action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-sdn-ovs{{ openshift_pkg_version | oo_image_tag_to_rpm_version(include_dash=True) }} state=present"