From 814feed0ce02f9d2f3597fa3bc56bd193a6c740d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 22 May 2021 15:22:03 +0200 Subject: chore(whitby): Move clbot to HackInt Points clbot at the new local ZNC instead. This will make it part of the things happening through the `tvlbot` account. Relates to b/101 Change-Id: I1c15ffa5720d3af34475c15bee3fdaa537ac659b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3127 Tested-by: BuildkiteCI Reviewed-by: sterni Reviewed-by: grfn --- ops/machines/whitby/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'ops') diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index 36b4a1987513..d8594c43fbe4 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -247,14 +247,17 @@ in { # Start the Gerrit->IRC bot services.depot.clbot = { enable = true; + channels = [ "#tvl" ]; - # Almost all configuration values are already correct (well, duh), - # see //fun/clbot for details. + # See //fun/clbot for details. flags = { gerrit_host = "cl.tvl.fyi:29418"; gerrit_ssh_auth_username = "clbot"; - gerrit_ssh_auth_key = "/etc/secrets/clbot-key"; - irc_server = "znc.lukegb.com:6697"; + gerrit_ssh_auth_key = "/etc/secrets/id_clbot"; + + irc_server = "localhost:${toString config.services.znc.config.Listener.l.Port}"; + irc_user = "tvlbot"; + irc_nick = "tvlbot"; notify_branches = "canon,refs/meta/config"; notify_repo = "depot"; @@ -263,11 +266,6 @@ in { # populated from /etc/secrets/clbot irc_pass = "$CLBOT_PASS"; }; - - channels = [ - "##tvl" - "##tvl-dev" - ]; }; services.depot = { -- cgit 1.4.1