From 956dfbaf725550858de3d624af73cfe706b6bb0d Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 2 Feb 2017 21:43:04 -0600 Subject: [PATCH] Disable yum fastestmirror plugin The fastestmirror plugin can cause delays during yum operations when it checks for the fastest available mirror. In addition, the script sometimes chooses mirrors that are quite slow. Change-Id: I8acd9f92f4b792877bd4396a15d963bd3c1ad6be --- tasks/openstack_host_install_yum.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/openstack_host_install_yum.yml b/tasks/openstack_host_install_yum.yml index baf93fe5..50c5f44f 100644 --- a/tasks/openstack_host_install_yum.yml +++ b/tasks/openstack_host_install_yum.yml @@ -13,6 +13,16 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Disable yum fastestmirror plugin + lineinfile: + dest: /etc/yum/pluginconf.d/fastestmirror.conf + regexp: '^enabled=' + line: 'enabled=0' + state: present + tags: + - openstack-yum-packages + - openstack-packages + - name: Ensure epel-release is installed prior to installing host packages yum: pkg: epel-release