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

Add casd_reserved var and change default args #7

Merged
merged 1 commit into from
Sep 18, 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 @@ -16,6 +16,7 @@ A [default configuration](defaults/main.yml) is provided in this role. It establ
- `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.
- `casd_bind_address`: the address the service listens to inside the container
- `casd_quota_high`: the maximum local cache size
- `casd_reserved`: Reserved disk space
- `casd_cache_mnt`: the path to bindmount the cache to in the container
- `casd_cmd`: the entrypoint of the container
- `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.
Expand Down
7 changes: 5 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ 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 }}"
casd_quota_high: "200G"
casd_quota_high: ""
casd_reserved: ""
casd_cache_mnt: "/srv"
casd_certs_mnt: "/certs"
casd_cmd: >-
--verbose --bind {{ casd_bind }} --quota-high {{ casd_quota_high }}
--verbose --bind {{ casd_bind }}
{% 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 }}
{{ casd_proxy_asset_args }} {{ casd_proxy_execution_args }} {{ casd_cache_mnt }}
casd_default_mounts:
Expand Down