# 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
# has a variety to choose from, like IRC bots.
c['services'] = []
+mn = reporters.MailNotifier(fromaddr="Humopery Buildbot <buildbot@humopery.space>",
+ 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