Skip to content
Closed
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Name and group of the user running the minio server.
minio_server_envfile: /etc/default/minio
```

You can specify the location of your existing config using --config-dir (default: ${HOME}/.minio)
Path to the file containing the minio server configuration ENV variables.

```yaml
minio_config_dir: "/etc/minio"
minio_certs_dir: "/etc/minio/certs"
```

Path to the file containing the minio server configuration ENV variables.
You can specify the location of your TLS certificates using --certs-dir (default: ${HOME}/.minio/certs)

```yaml
minio_server_addr: ":9091"
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ minio_group: minio
# Path to the file containing the ENV variables for the MinIO server
minio_server_envfile: /etc/default/minio

# Directory to store minio config. Will default to minio_user/.minio if not defined
minio_config_dir: "/etc/minio"
# Directory to store minio certs. Will default to minio_user/.minio/certs if not defined
minio_certs_dir: "/etc/minio/certs"

# Minio server ip/fqdn and port. This makes up the server_addr below
minio_server_ip: ""
Expand Down
6 changes: 3 additions & 3 deletions tasks/install-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
minio_server_opts: "--console-address {{ minio_console_addr }} {{ minio_server_opts }}"
when: minio_console_addr | length > 1

- name: "Append the MinIO config directory var to minio_server_opts"
- name: "Append the MinIO certs directory var to minio_server_opts"
set_fact:
minio_server_opts: "--config-dir {{ minio_config_dir }} {{ minio_server_opts }}"
when: minio_config_dir | length > 0
minio_server_opts: "--certs-dir {{ minio_certs_dir }} {{ minio_server_opts }}"
when: minio_certs_dir | length > 0

- name: Create MinIO group
group:
Expand Down