Skip to content

Commit 82f6484

Browse files
authored
Merge pull request #7 from CodethinkLabs/scott/reserved
Add `casd_reserved` var and change default args
2 parents 6ed26d3 + a96bda4 commit 82f6484

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A [default configuration](defaults/main.yml) is provided in this role. It establ
1616
- `casd_published_ports`: a list of docker port specifications to be published. This does not affect whether the port on which buildbox-casd is listening is exposed.
1717
- `casd_bind_address`: the address the service listens to inside the container
1818
- `casd_quota_high`: the maximum local cache size
19+
- `casd_reserved`: Reserved disk space
1920
- `casd_cache_mnt`: the path to bindmount the cache to in the container
2021
- `casd_cmd`: the entrypoint of the container
2122
- `casd_bind_path`: path to a UNIX socket to serve on. If set, `casd_bind_address` and `casd_port` are ignored entirely and the service is not exposed.

defaults/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ casd_metrics_args: >-
3131
casd_bind_address: "0.0.0.0"
3232
casd_bind_path: ""
3333
casd_bind: "{{ 'unix:' ~ casd_bind_path if casd_bind_path else casd_bind_address ~ ':' ~ casd_port }}"
34-
casd_quota_high: "200G"
34+
casd_quota_high: ""
35+
casd_reserved: ""
3536
casd_cache_mnt: "/srv"
3637
casd_certs_mnt: "/certs"
3738
casd_cmd: >-
38-
--verbose --bind {{ casd_bind }} --quota-high {{ casd_quota_high }}
39+
--verbose --bind {{ casd_bind }}
40+
{% if casd_quota_high %}--quota-high {{ casd_quota_high }}{% endif %}
41+
{% if casd_reserved %}--reserved {{ casd_reserved }}{% endif %}
3942
{{ casd_metrics_args }} {{ casd_proxy_cas_args }} {{ casd_proxy_ac_args }}
4043
{{ casd_proxy_asset_args }} {{ casd_proxy_execution_args }} {{ casd_cache_mnt }}
4144
casd_default_mounts:

0 commit comments

Comments
 (0)