diff --git a/README.md b/README.md index 29d0c7b..874958e 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/defaults/main.yml b/defaults/main.yml index 83c702d..8aa8078 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: "" diff --git a/tasks/install-server.yml b/tasks/install-server.yml index 773abda..d5ceb06 100644 --- a/tasks/install-server.yml +++ b/tasks/install-server.yml @@ -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: