diff options
author | lassulus <lass@aidsballs.de> | 2015-12-30 01:43:51 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-30 01:43:51 +0100 |
commit | 92c4fee6dc10499a9960750abe91c8a4b41eb5d5 (patch) | |
tree | 1b5c00fd743d226545487126ba9eb149db9b18ad /krebs/3modules/buildbot/master.nix | |
parent | 2a0cd63387049350f6de73f609a32a0bf4e49253 (diff) | |
parent | d574c0ef78f7572aec88e484d3ff6256247e878c (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/buildbot/master.nix')
-rw-r--r-- | krebs/3modules/buildbot/master.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/krebs/3modules/buildbot/master.nix b/krebs/3modules/buildbot/master.nix index 5870c3145..74385a433 100644 --- a/krebs/3modules/buildbot/master.nix +++ b/krebs/3modules/buildbot/master.nix @@ -132,6 +132,16 @@ let ''; }; + secrets = mkOption { + default = []; + type = types.listOf types.str; + example = [ "cac.json" ]; + description = '' + List of all the secrets in <secrets> which should be copied into the + buildbot master directory. + ''; + }; + slaves = mkOption { default = {}; type = types.attrsOf types.str; @@ -344,10 +354,10 @@ let fi # always override the master.cfg cp ${buildbot-master-config} ${workdir}/master.cfg + # copy secrets - cp ${secretsdir}/cac.json ${workdir} - cp ${secretsdir}/retiolum-ci.rsa_key.priv \ - ${workdir}/retiolum.rsa_key.priv + ${ concatMapStringsSep "\n" + (f: "cp ${secretsdir}/${f} ${workdir}/${f}" ) cfg.secrets } # sanity ${buildbot}/bin/buildbot checkconfig ${workdir} |