mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-03-26 21:33:03 +00:00
add virtualization_type containerd to initd template
This commit is contained in:
@@ -81,7 +81,7 @@ startKeycloak() {
|
||||
-Djboss.https.port=${KEYCLOAK_HTTPS_PORT} \
|
||||
-Djboss.management.http.port=${KEYCLOAK_MANAGEMENT_HTTP_PORT} \
|
||||
-Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_PORT} \
|
||||
-Djboss.node.name={{ inventory_hostname }} {% if ansible_facts.virtualization_type in ['docker','oci'] %}-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true {% endif %}\
|
||||
-Djboss.node.name={{ inventory_hostname }} {% if ansible_facts.virtualization_type in ['docker','containerd'] %}-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true {% endif %}\
|
||||
2>&1 >> "${KEYCLOAK_LOGFILE}" &
|
||||
echo "${!}" > "${KEYCLOAK_PIDFILE}"
|
||||
fi
|
||||
|
||||
@@ -11,7 +11,7 @@ Group={{ keycloak_service_group }}
|
||||
PIDFile={{ keycloak_service_pidfile }}
|
||||
ExecStart={{ keycloak_dest }}/keycloak-service.sh start
|
||||
ExecStop={{ keycloak_dest }}/keycloak-service.sh stop
|
||||
TimeoutStartSec=90
|
||||
TimeoutStartSec=60
|
||||
TimeoutStopSec=60
|
||||
LimitNOFILE=102642
|
||||
|
||||
|
||||
Reference in New Issue
Block a user