From: Erik Mackdanz Date: Mon, 1 Jul 2024 00:21:51 +0000 (+0000) Subject: configure universal email notification, use proper secret configuration X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=43bb13791ce86f5fcd0383c40e8b7043949d09bb;p=private%2Fbuildbot-default.git configure universal email notification, use proper secret configuration --- diff --git a/master.cfg b/master.cfg index 208a35b..0ee9ac3 100644 --- a/master.cfg +++ b/master.cfg @@ -10,15 +10,17 @@ from buildbot.plugins import * # a shorter alias to save typing. c = BuildmasterConfig = {} +####### SECRETS + +c['secretsProviders'] = [secrets.SecretInAFile(dirname="/var/lib/buildmaster/secrets")] + ####### WORKERS # The 'workers' list defines the set of recognized workers. Each element is # a Worker object, specifying a unique worker name and password. The same # worker name and password must be configured on the worker. -workerpass = None -with open("worker-carbon.pass") as f: - workerpass = f.readline() -c['workers'] = [worker.Worker("carbon-worker", workerpass)] +c['workers'] = [worker.Worker("carbon-worker", + util.Secret("worker-carbon.pass"))] # 'protocols' contains information about protocols which master will use for # communicating with workers. You must define at least 'port' option that workers @@ -81,6 +83,16 @@ c['builders'].append( # has a variety to choose from, like IRC bots. c['services'] = [] +mn = reporters.MailNotifier(fromaddr="Humopery Buildbot ", + relayhost="smtp.humopery.space", + smtpPort=465, + smtpUser="buildbot@humopery.space", + smtpPassword=util.Secret("unix.pass"), + useTls=True, + useSmtps=True, + extraRecipients=["erik@humopery.space","erikmack@gmail.com"]) +c['services'].append(mn) + ####### PROJECT IDENTITY