]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: set timeout in /etc/yum.conf 121/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 27 Aug 2015 17:43:49 +0000 (12:43 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 27 Aug 2015 18:00:14 +0000 (13:00 -0500)
We were getting timeouts when using epel mirrors and the default timeout value
is only 30 seconds which is not long enough for heavily used mirrors to
respond.

See: http://tracker.ceph.com/issues/12778

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/defaults/main.yml
roles/common/tasks/epel.yml

index bed99f2af0ae1a50b6f5763726824fa4b037b2ba..b674970e7905257b04047a9e46b6855a51b961b7 100644 (file)
@@ -28,3 +28,4 @@ epel_repos:
     gpgcheck: 0
 
 enable_epel: true
+yum_timeout: 300
index 4b73fcd5228e5f0e90212bc5344804715f20fcfc..fcf985677001c412106cb9033692e52ac509778c 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: Increase the yum timeout.
+  lineinfile:
+    dest: /etc/yum.conf
+    line: "timeout={{ yum_timeout }}"
+    regexp: "^timeout="
+    state: present
+
 - name: Configure epel repos in /etc/yum.repos.d/
   template:
     src: yum_repo.j2