diff --git a/README.md b/README.md index 6d2746f..7d87e04 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml index a1fc629..5da731e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 }}