mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-21 11:15:18 +01:00
add ansible_managed info
This commit is contained in:
parent
78956bfbdb
commit
4b1e72dd45
@ -9,6 +9,8 @@
|
||||
# Description: Distributed object storage server built for cloud applications and devops.
|
||||
### END INIT INFO
|
||||
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# Do NOT "set -e"
|
||||
|
||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||
|
@ -1,3 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Minio
|
||||
Documentation=https://docs.minio.io
|
||||
@ -15,8 +17,12 @@ PermissionsStartOnly=true
|
||||
|
||||
EnvironmentFile={{ minio_server_envfile }}
|
||||
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ minio_server_envfile }}\""
|
||||
|
||||
ExecStart={{ minio_server_bin }} server $MINIO_OPTS $MINIO_VOLUMES
|
||||
|
||||
# Let systemd restart this service only if it has ended with the clean exit code or signal.
|
||||
Restart=on-success
|
||||
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
@ -33,5 +39,9 @@ SendSIGKILL=no
|
||||
|
||||
SuccessExitStatus=0
|
||||
|
||||
{% if minio_server_addr.split(':')[1] < 1024 %}
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
{% endif %}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user