Skip to content

More config options#2

Open
sdemura wants to merge 3 commits intoatosatto:masterfrom
sdemura:create-data-dirs
Open

More config options#2
sdemura wants to merge 3 commits intoatosatto:masterfrom
sdemura:create-data-dirs

Conversation

@sdemura
Copy link
Copy Markdown

@sdemura sdemura commented Feb 1, 2018

Adds more server options to make this role a bit more useable

  • config dir support
  • region support
  • create data dirs with permissions

Sean Demura added 3 commits February 1, 2018 12:18
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
Copy link
Copy Markdown
Collaborator

@SuperQ SuperQ left a 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.

Comment thread defaults/main.yml
minio_server_opts: ""

# Directory to store minio config. Will default to minio_user/.minio if not defined
minio_config_dir: ""
Copy link
Copy Markdown
Collaborator

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.

Comment thread tasks/main.yml
owner: "{{ minio_user }}"
group: "{{ minio_group }}"
state: directory
when: minio_config_dir is defined
Copy link
Copy Markdown
Collaborator

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.

Comment thread tasks/server.yml
mode: 0755
when: ansible_service_mgr != "systemd"

- name: create the minio data directory
Copy link
Copy Markdown
Collaborator

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.

Comment thread tasks/main.yml
owner: "{{ minio_user }}"
group: "{{ minio_group }}"
state: directory
when: minio_config_dir is defined
Copy link
Copy Markdown
Collaborator

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.

Comment thread defaults/main.yml
minio_server_opts: ""

# Directory to store minio config. Will default to minio_user/.minio if not defined
minio_config_dir: ""
Copy link
Copy Markdown
Collaborator

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.

akire0ne pushed a commit to akire0ne/ansible-minio that referenced this pull request Feb 15, 2022
Pass the `$MINIO_ARGS` var to ExecStart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants