Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make buildbox-casd log level configurable #9

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A [default configuration](defaults/main.yml) is provided in this role. It establ
- `casd_container`: the container name
- `casd_network`: the name of the Docker network to create and attach the service container to
- `casd_network_connected_containers`: a list of containers to connect to the network being created for buildbox-casd
- `casd_log_level`: set log level for casd, possible values debug, error, info, trace, warning. Default is error
- `casd_log_driver`: the log driver to use for the buildbox-casd container
- `casd_log_options`: additional options to pass to the log driver
- `casd_port`: the port the service listens to in the container and which is exposed on the container
Expand Down
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ casd_metrics_args: >-
casd_bind_address: "0.0.0.0"
casd_bind_path: ""
casd_bind: "{{ 'unix:' ~ casd_bind_path if casd_bind_path else casd_bind_address ~ ':' ~ casd_port }}"
# (debug, error, info, trace, warning) [optional, default = "error"]
casd_loglevel: ""
casd_quota_high: ""
casd_reserved: ""
casd_cache_mnt: "/srv"
casd_certs_mnt: "/certs"
casd_cmd: >-
--verbose --bind {{ casd_bind }}
--bind {{ casd_bind }}
{% if casd_loglevel %}--log-level {{ casd_loglevel }}{% endif %}
{% if casd_quota_high %}--quota-high {{ casd_quota_high }}{% endif %}
{% if casd_reserved %}--reserved {{ casd_reserved }}{% endif %}
{{ casd_metrics_args }} {{ casd_proxy_cas_args }} {{ casd_proxy_ac_args }}
Expand Down