l buildbot: hostname agnostic
This commit is contained in:
parent
423c6944bd
commit
644419b611
|
@ -9,9 +9,11 @@ let
|
||||||
ControlPersist 4h
|
ControlPersist 4h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
hostname = config.networking.hostName;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
config.services.nginx.virtualHosts.build = {
|
config.services.nginx.virtualHosts.build = {
|
||||||
serverAliases = [ "build.prism.r" ];
|
serverAliases = [ "build.${hostname}.r" ];
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
@ -20,7 +22,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config.krebs.buildbot.master = let
|
config.krebs.buildbot.master = let
|
||||||
stockholm-mirror-url = http://cgit.prism.r/stockholm ;
|
stockholm-mirror-url = "http://cgit.${hostname}.r/stockholm";
|
||||||
in {
|
in {
|
||||||
slaves = {
|
slaves = {
|
||||||
testslave = "lasspass";
|
testslave = "lasspass";
|
||||||
|
@ -109,13 +111,13 @@ in {
|
||||||
web.enable = true;
|
web.enable = true;
|
||||||
irc = {
|
irc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nick = "buildbot-lass";
|
nick = "build|${hostname}";
|
||||||
server = "ni.r";
|
server = "ni.r";
|
||||||
channels = [ "retiolum" "noise" ];
|
channels = [ "retiolum" "noise" ];
|
||||||
allowForce = true;
|
allowForce = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
c['buildbotURL'] = "http://build.prism.r/"
|
c['buildbotURL'] = "http://build.${hostname}.r/"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user