-
Notifications
You must be signed in to change notification settings - Fork 92
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
Variables cleanup & README colors #12
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,101 @@ | ||
Ansible Role: Minio | ||
=================== | ||
<p><img src="https://avatars0.githubusercontent.com/u/695951?s=200&v=4" alt="minio logo" title="minio" align="right" height="60" /></p> | ||
|
||
# Ansible Role: Minio | ||
|
||
[![Build Status](https://travis-ci.org/atosatto/ansible-minio.svg?branch=master)](https://travis-ci.org/atosatto/ansible-minio) | ||
[![License](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)](https://opensource.org/licenses/MIT) | ||
[![Ansible Role](https://img.shields.io/badge/ansible%20role-atosatto.minio-blue.svg)](https://galaxy.ansible.com/atosatto/minio/) | ||
[![GitHub tag](https://img.shields.io/github/tag/atosatto/ansible-minio.svg)](https://github.com/atosatto/ansible-minio/tags) | ||
|
||
Install and configure the [Minio](https://minio.io/) S3 compatible object storage server | ||
on RHEL/CentOS and Debian/Ubuntu. | ||
|
||
Requirements | ||
------------ | ||
## Requirements | ||
|
||
None. | ||
|
||
Role Variables | ||
-------------- | ||
## Role Variables | ||
|
||
Available variables are listed below, along with default values (see `defaults/main.yml`): | ||
|
||
minio_server_bin: /usr/local/bin/minio | ||
minio_client_bin: /usr/local/bin/mc | ||
```yaml | ||
minio_server_bin: /usr/local/bin/minio | ||
minio_client_bin: /usr/local/bin/mc | ||
``` | ||
|
||
Installation path of the Minio server and client binaries. | ||
|
||
minio_user: minio | ||
minio_group: minio | ||
```yaml | ||
minio_user: minio | ||
minio_group: minio | ||
``` | ||
|
||
Name and group of the user running the minio server. | ||
**NB**: This role automatically creates the minio user and/or group if these does not exist in the system. | ||
|
||
minio_server_envfile: /etc/default/minio | ||
```yaml | ||
minio_server_envfile: /etc/default/minio | ||
``` | ||
|
||
Path to the file containing the minio server configuration ENV variables. | ||
|
||
minio_server_addr: ":9091" | ||
```yaml | ||
minio_server_addr: ":9091" | ||
``` | ||
|
||
The Minio server listen address. | ||
|
||
minio_server_datadirs: [ ] | ||
```yaml | ||
minio_server_datadirs: [ ] | ||
``` | ||
|
||
Directories of the folder containing the minio server data | ||
**NB**: This variable must always be set by the role, otherwise the minio service will not start. | ||
|
||
minio_server_opts: "" | ||
```yaml | ||
minio_server_make_datadirs: true | ||
``` | ||
|
||
Create directories from `minio_server_datadirs` | ||
|
||
```yaml | ||
minio_server_opts: "" | ||
``` | ||
|
||
Additional CLI options that must be appended to the minio server start command. | ||
|
||
minio_access_key: "" | ||
minio_secret_key: "" | ||
```yaml | ||
minio_access_key: "" | ||
minio_secret_key: "" | ||
``` | ||
|
||
Minio access and secret keys. | ||
|
||
minio_install_server: false | ||
minio_install_client: false | ||
```yaml | ||
minio_install_server: true | ||
minio_install_client: true | ||
``` | ||
|
||
Switches to disable minio server and/or minio client installation. | ||
|
||
Dependencies | ||
------------ | ||
## Dependencies | ||
|
||
None. | ||
|
||
Example Playbook | ||
---------------- | ||
## Example Playbook | ||
|
||
```yaml | ||
- name: "Install Minio" | ||
hosts: all | ||
roles: | ||
- { role: atosatto.minio, | ||
minio_server_datadirs: [ "/tmp" ] } | ||
``` | ||
|
||
## Changelog | ||
|
||
$ cat playbook.yml | ||
- name: "Install Minio" | ||
hosts: all | ||
roles: | ||
- { role: atosatto.minio, | ||
minio_server_datadirs: [ "/tmp" ] } | ||
See [changelog](CHANGELOG.md). | ||
|
||
License | ||
------- | ||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we add also the
minio_server_make_datadirs
variable?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done