mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-22 11:25:11 +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.
|
# Description: Distributed object storage server built for cloud applications and devops.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
# Do NOT "set -e"
|
# Do NOT "set -e"
|
||||||
|
|
||||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Minio
|
Description=Minio
|
||||||
Documentation=https://docs.minio.io
|
Documentation=https://docs.minio.io
|
||||||
@ -15,8 +17,12 @@ PermissionsStartOnly=true
|
|||||||
|
|
||||||
EnvironmentFile={{ minio_server_envfile }}
|
EnvironmentFile={{ minio_server_envfile }}
|
||||||
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ 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
|
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
|
StandardOutput=journal
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
||||||
@ -33,5 +39,9 @@ SendSIGKILL=no
|
|||||||
|
|
||||||
SuccessExitStatus=0
|
SuccessExitStatus=0
|
||||||
|
|
||||||
|
{% if minio_server_addr.split(':')[1] < 1024 %}
|
||||||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user