]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Set PMCD_CONNECT_TIMEOUT
authorZack Cerza <zack@redhat.com>
Thu, 21 Apr 2016 16:19:26 +0000 (10:19 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 21 Apr 2016 16:19:26 +0000 (10:19 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/pcp/tasks/manager.yml

index 5e6448e54f5155aaa93e91552fdbf050154797ec..74060148e7ae60c45c1c52f043bfc661679ea307 100644 (file)
     ansible_pkg_mgr == "yum"
   register: install_pmmgr_yum
 
+# Make the pmcd connect timeout very small so we don't spend ages looking for
+# hosts that are down
+- name: Set pmcd connect timeout
+  lineinfile:
+    dest: /etc/pcp/pmmgr/pmmgr.options
+    regexp: "^PMCD_CONNECT_TIMEOUT="
+    line: "PMCD_CONNECT_TIMEOUT=0.1"
+
 - name: Enable pmmgr
   service:
     name: "{{ pmmgr_service }}"