add virtualization_type containerd to initd template

main
Guido Grazioli 2021-12-14 14:50:54 +01:00
parent b8dad07e5f
commit 2c87d1023f
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ startKeycloak() {
-Djboss.https.port=${KEYCLOAK_HTTPS_PORT} \ -Djboss.https.port=${KEYCLOAK_HTTPS_PORT} \
-Djboss.management.http.port=${KEYCLOAK_MANAGEMENT_HTTP_PORT} \ -Djboss.management.http.port=${KEYCLOAK_MANAGEMENT_HTTP_PORT} \
-Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_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}" & 2>&1 >> "${KEYCLOAK_LOGFILE}" &
echo "${!}" > "${KEYCLOAK_PIDFILE}" echo "${!}" > "${KEYCLOAK_PIDFILE}"
fi fi

View File

@ -11,7 +11,7 @@ Group={{ keycloak_service_group }}
PIDFile={{ keycloak_service_pidfile }} PIDFile={{ keycloak_service_pidfile }}
ExecStart={{ keycloak_dest }}/keycloak-service.sh start ExecStart={{ keycloak_dest }}/keycloak-service.sh start
ExecStop={{ keycloak_dest }}/keycloak-service.sh stop ExecStop={{ keycloak_dest }}/keycloak-service.sh stop
TimeoutStartSec=90 TimeoutStartSec=60
TimeoutStopSec=60 TimeoutStopSec=60
LimitNOFILE=102642 LimitNOFILE=102642