Skip to content

Commit

Permalink
Merge pull request #9 from nanonyme/patch-1
Browse files Browse the repository at this point in the history
Make buildbox-casd log level configurable
  • Loading branch information
jjardon authored Sep 25, 2024
2 parents 82f6484 + 1b2d32d commit e403fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit e403fce

Please sign in to comment.