From 5cd239973300a453c1bf74b08bbdb2079a57107b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sj=C3=B6holm?= Date: Fri, 24 Feb 2023 17:14:47 +0100 Subject: [PATCH 1/2] Replace config-dir with certs-dir since the former is deprecated --- README.md | 4 ++-- defaults/main.yml | 4 ++-- tasks/install-server.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 29d0c7b..86a5390 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ 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) +You can specify the location of your TLS certificates using --certs-dir (default: ${HOME}/.minio/certs) ```yaml -minio_config_dir: "/etc/minio" +minio_certs_dir: "/etc/minio/certs" ``` Path to the file containing the minio server configuration ENV variables. 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: From 44d5dfe1ddddc66f8181ace8b2c11505190f02bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sj=C3=B6holm?= Date: Fri, 24 Feb 2023 17:15:39 +0100 Subject: [PATCH 2/2] Fix ordering of variable descriptions in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86a5390..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 TLS certificates using --certs-dir (default: ${HOME}/.minio/certs) +Path to the file containing the minio server configuration ENV variables. ```yaml 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"