mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-25 22:30:32 -07:00
feat: add a destination variable for the log link
docs: argument specs for the keycloak_quarkus_log_target docs: added parameter to the roles README fix: role variable is keycloak_log_target and not keycloak_quarkus_log_target
This commit is contained in:
parent
12147b4769
commit
a538828f0d
12 changed files with 80 additions and 3 deletions
|
@ -118,7 +118,7 @@ Role Defaults
|
|||
|`keycloak_db_background_validation_millis`| How frequenly the connection pool is validated in the background | `10000` if background validation enabled |
|
||||
|`keycloak_db_background_validate_on_match` | Enable validate on match for database connections | `False` |
|
||||
|`keycloak_frontend_url` | frontend URL for keycloak endpoint | `http://localhost:8080/auth/` |
|
||||
|
||||
|`keycloak_log_target`| Set the destination of the keycloak log folder link | `/var/log/keycloak` |
|
||||
|
||||
|
||||
Role Variables
|
||||
|
|
|
@ -115,3 +115,6 @@ keycloak_default_jdbc:
|
|||
version: 12.2.0
|
||||
# role specific vars
|
||||
keycloak_no_log: True
|
||||
|
||||
### logging configuration
|
||||
keycloak_log_target: /var/log/keycloak
|
||||
|
|
|
@ -360,6 +360,10 @@ argument_specs:
|
|||
required: False
|
||||
description: "Override the subnet match for jgroups cluster formation; if not defined, it will be inferred from local machine route configuration"
|
||||
type: "str"
|
||||
keycloak_log_target:
|
||||
default: '/var/log/keycloak'
|
||||
type: "str"
|
||||
description: "Set the destination of the keycloak log folder link"
|
||||
downstream:
|
||||
options:
|
||||
sso_version:
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ keycloak_jboss_home }}/standalone/log"
|
||||
dest: /var/log/keycloak
|
||||
dest: "{{ keycloak_log_target }}"
|
||||
become: yes
|
||||
|
||||
- name: Set admin credentials and restart if not already created
|
||||
|
|
|
@ -97,6 +97,7 @@ Role Defaults
|
|||
|`keycloak_quarkus_log_level`| The log level of the root category or a comma-separated list of individual categories and their levels | `info` |
|
||||
|`keycloak_quarkus_log_file`| Set the log file path and filename relative to keycloak home | `data/log/keycloak.log` |
|
||||
|`keycloak_quarkus_log_format`| Set a format specific to file log entries | `%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n` |
|
||||
|`keycloak_quarkus_log_target`| Set the destination of the keycloak log folder link | `/var/log/keycloak` |
|
||||
|`keycloak_quarkus_proxy_mode`| The proxy address forwarding mode if the server is behind a reverse proxy | `edge` |
|
||||
|`keycloak_quarkus_start_dev`| Whether to start the service in development mode (start-dev) | `False` |
|
||||
|`keycloak_quarkus_transaction_xa_enabled`| Whether to use XA transactions | `True` |
|
||||
|
|
|
@ -90,3 +90,4 @@ keycloak_quarkus_log: file
|
|||
keycloak_quarkus_log_level: info
|
||||
keycloak_quarkus_log_file: data/log/keycloak.log
|
||||
keycloak_quarkus_log_format: '%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n'
|
||||
keycloak_quarkus_log_target: /var/log/keycloak
|
||||
|
|
|
@ -243,6 +243,10 @@ argument_specs:
|
|||
default: '%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n'
|
||||
type: "str"
|
||||
description: "Set a format specific to file log entries"
|
||||
keycloak_quarkus_log_target:
|
||||
default: '/var/log/keycloak'
|
||||
type: "str"
|
||||
description: "Set the destination of the keycloak log folder link"
|
||||
keycloak_quarkus_proxy_mode:
|
||||
default: 'edge'
|
||||
type: "str"
|
||||
|
|
|
@ -67,6 +67,6 @@
|
|||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ keycloak.log.file | dirname }}"
|
||||
dest: /var/log/keycloak
|
||||
dest: "{{ keycloak_quarkus_log_target }}"
|
||||
force: yes
|
||||
become: yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue