buildbarn / bb-clientd

Buildbarn client-side FUSE/NFSv4 daemon
Apache License 2.0
39 stars 11 forks source link

Cannot override `clusters` when run as systemd service #19

Open faximan opened 6 days ago

faximan commented 6 days ago

Hey!

As I'm not familiar with jsonnet I am probably just holding this wrong... I have figured out that I need to override the clusters variable in bb_clientd.jsonnet to include my RBE endpoint.

This works when run from source, but when run as a systemd service that does not give me access to the config directly, I am not sure what I need to put into ~/.config/bb_clientd.jsonnet.

Thanks in advance,

EdSchouten commented 3 days ago

Yeah, that's a bit annoying. Right now you need to copy the entire default configuration to ~/.config/bb_clientd.jsonnet and adjust that. Ideally we'd make it so that you could override just that part:

local defaults = import 'bb_clientd_defaults.jsonnet';
defaults {
  clusters:: ['hostname-a', 'hostname-b'],
}

Unfortunately, that's not supported (yet). Patches are welcome!