-
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
More config options #2
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,12 @@ minio_server_addr: ":9091" | |
minio_server_datadirs: [ ] | ||
|
||
# Additional minio server CLI options | ||
# To set config dir, see minio_config_dir | ||
minio_server_opts: "" | ||
|
||
# Directory to store minio config. Will default to minio_user/.minio if not defined | ||
minio_config_dir: "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's set a default to |
||
|
||
# Minio access and secret keys | ||
minio_access_key: "" | ||
minio_secret_key: "" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,14 @@ | |
group: "{{ minio_group }}" | ||
shell: /bin/bash | ||
|
||
- name: create minio config dir | ||
file: | ||
path: "{{ minio_config_dir }}" | ||
owner: "{{ minio_user }}" | ||
group: "{{ minio_group }}" | ||
state: directory | ||
when: minio_config_dir is defined | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
|
||
- include: server.yml | ||
when: not skip_server | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,15 @@ | |
mode: 0755 | ||
when: ansible_service_mgr != "systemd" | ||
|
||
- name: create the minio data directory | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was superseded by #4. |
||
file: | ||
path: "{{ item }}" | ||
owner: "{{ minio_user }}" | ||
group: "{{ minio_group }}" | ||
mode: 0755 | ||
state: directory | ||
with_items: "{{ minio_server_datadirs }}" | ||
|
||
- name: enable and start the minio service | ||
service: | ||
name: minio | ||
|
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.
This should be also added to README.md with a short explanaition.