Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve network resiliency #10

Merged
merged 3 commits into from
Jun 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
owner: "root"
group: "root"
mode: 0755
register: _download_client
until: _download_client is succeeded
retries: 5
delay: 2
15 changes: 15 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions tasks/python_sni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tasks/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down