Skip to content
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

Option to disable create/update the user/group running minio & add by default create_home: no #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ Can be 'RELEASE.2019-06-27T21-13-50Z' for instance.
```yaml
minio_user: minio
minio_group: minio
minio_usergroup_manage: true
```

Name and group of the user running the minio server.
**NB**: This role automatically creates the minio user and/or group if these does not exist in the system.
Name and group of the user running the minio server. Without explicitly
disabling `minio_usergroup_manage: false` this role will create/update this
user and group. The created/updated user will be installed/updated as a system
user.

```yaml
minio_server_envfile: /etc/default/minio
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ minio_client_release: ""
# Runtime user and group for the Minio server service
minio_user: minio
minio_group: minio
minio_usergroup_manage: true

# Path to the file containing the ENV variables for the Minio server
minio_server_envfile: /etc/default/minio
Expand Down
3 changes: 3 additions & 0 deletions tasks/install-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@
group:
name: "{{ minio_group }}"
state: present
when: minio_usergroup_manage|bool

- name: Create Minio user
user:
name: "{{ minio_user }}"
group: "{{ minio_group }}"
system: "yes"
create_home: no
shell: "/usr/sbin/nologin"
when: minio_usergroup_manage|bool

- name: Create the Minio data storage directories
file:
Expand Down