-
Notifications
You must be signed in to change notification settings - Fork 93
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?
Conversation
Adds some more config options to make this role more useable - config dir support - region support - create data directories with proper permissions
Adds more server options to make this role a bit more useable - config dir support - region support - create data dirs with permissions
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.
I like the idea.
Please rebase and update the README.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Let's set a default to /etc/minio
.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
This when
won't work because it's defined as ""
in the defaults. Let's just set a sane default.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
This was superseded by #4.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
minio_config_dir
is always defined (defined in defaults/main.yml). better would be to check if variable is an empty string or not.
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 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.
Pass the `$MINIO_ARGS` var to ExecStart
Adds more server options to make this role a bit more useable