Merge pull request #10 from paulfantom/resiliency

Improve network resiliency
This commit is contained in:
Ben Kochie 2018-06-25 15:18:31 +02:00 committed by GitHub
commit 05999f6810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View File

@ -6,3 +6,7 @@
owner: "root"
group: "root"
mode: 0755
register: _download_client
until: _download_client is succeeded
retries: 5
delay: 2

View File

@ -14,6 +14,21 @@
name: "{{ item }}"
state: present
with_items: "{{ minio_ansible_support_packages }}"
register: _install_packages
until: _install_packages is succeeded
retries: 5
delay: 2
- name: create minio group
group:
name: "{{ minio_group }}"
state: present
- name: create minio user
user:
name: "{{ minio_user }}"
group: "{{ minio_group }}"
shell: /bin/bash
- include: server.yml
when: minio_install_server

View File

@ -4,12 +4,20 @@
name: "{{ item }}"
state: present
with_items: "{{ python_pip_packages }}"
register: _install_packages
until: _install_packages is succeeded
retries: 5
delay: 2
- name: install the Python SNI support packages
package:
name: "{{ item }}"
state: present
with_items: "{{ python_sni_support_packages }}"
register: _install_sni_packages
until: _install_sni_packages is succeeded
retries: 5
delay: 2
# There extra pip dependencies are needed to add SSL SNI support to
# Python version prior to 2.7.9. SNI support is needed by the Ansible
@ -18,6 +26,10 @@
pip:
name: "{{ item }}"
state: present
register: _install_pip_packages
until: _install_pip_packages is succeeded
retries: 5
delay: 2
with_items:
- pyopenssl
- ndg-httpsclient

View File

@ -27,6 +27,10 @@
owner: "root"
group: "root"
mode: 0755
register: _download_server
until: _download_server is succeeded
retries: 5
delay: 2
- name: generate the minio server envfile
template: