Skip to content

Commit 8baddfe

Browse files
committed
ansible: Deploy glibc builder to a-fsn-de
1 parent 2b74559 commit 8baddfe

8 files changed

Lines changed: 43 additions & 43 deletions

File tree

ansible/group_vars/build.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ buildslave_buildslaves:
55
- name: x86_64-primary
66
sname: x86_64_void
77
mach: x86_64
8-
zone: FI-2
8+
zone: DE-1
99

1010
- name: i686-primary
1111
sname: i686_void
1212
mach: i686
13-
zone: FI-2
13+
zone: DE-1
1414

1515
- name: armv6l-primary
1616
sname: cross-rpi_void
1717
mach: armv6l
18-
zone: FI-2
18+
zone: DE-1
1919

2020
- name: armv7l-primary
2121
sname: cross-armv7l_void
2222
mach: armv7l
23-
zone: FI-2
23+
zone: DE-1
2424

2525
- name: x86_64-musl-primary
2626
sname: x86_64-musl_void
@@ -57,6 +57,13 @@ buildslave_buildslaves:
5757
zone: DE-2
5858

5959
buildslave_zones:
60+
DE-1:
61+
admin:
62+
nick: maldridge
63+
name: maldridge
64+
mail: maldridge@voidlinux.org
65+
xbps:
66+
makejobs: 16
6067
DE-2:
6168
admin:
6269
nick: leah2
@@ -70,15 +77,7 @@ buildslave_zones:
7077
mail: maldridge@voidlinux.org
7178
xbps:
7279
makejobs: 6
73-
FI-2:
74-
admin:
75-
nick: maldridge
76-
name: maldridge
77-
mail: maldridge@voidlinux.org
78-
xbps:
79-
makejobs: 16
8080

8181
buildmaster_remote_zones:
8282
- DE-2
83-
- US-MCI
8483
- FI-1
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
---
2+
xbps_repository_main: /data/pkgs
3+
xbps_repository_nonfree: /data/pkgs/nonfree
4+
xbps_repository_multilib: /data/pkgs/multilib
5+
xbps_repository_multilib_nonfree: /data/pkgs/multilib/nonfree
6+
27
sshd_AllowGroups:
38
- build-ops
4-
- syncpeers
9+
- void-buildsync
10+
11+
buildslave_zone: DE-1
512

6-
buildslave_zone: FI-2
13+
nomad_host_volumes:
14+
- name: void-packages
15+
path: /data/void-packages
16+
read_only: false
17+
- name: root-pkgs
18+
path: /hostdir/binpkgs
19+
read_only: false
20+
- name: glibc_hostdir
21+
path: /hostdir
22+
read_only: false

ansible/host_vars/b-hel-fi.m.voidlinux.org.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,3 @@ xbps_repository_multilib_nonfree: /mnt/data/pkgs/multilib/nonfree
77
sshd_AllowGroups:
88
- build-ops
99
- syncpeers
10-
11-
buildslave_zone: FI-2
12-
13-
nomad_host_volumes:
14-
- name: void-packages
15-
path: /mnt/data/void-packages
16-
read_only: false
17-
- name: root-pkgs
18-
path: /mnt/data/pkgs
19-
read_only: false
20-
- name: glibc_hostdir
21-
path: /hostdir
22-
read_only: false
23-
- name: debuginfod-data
24-
path: /mnt/data/debuginfod
25-
read_only: false

ansible/inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ a-hel-fi.m.voidlinux.org
55
a-hel-fi.m.voidlinux.org
66
b-hel-fi.m.voidlinux.org
77
c-lej-de.m.voidlinux.org
8+
a-fsn-de.m.voidlinux.org
89

910
[build:children]
1011
buildmaster

ansible/roles/buildmaster/templates/master.cfg.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ bash -c 'for repo in {hostdir}/binpkgs/multilib {hostdir}/binpkgs/multilib/nonfr
149149
m['bulk_factory_steps'] = [
150150
bulk_clean_step, git_clean_step, bootinst_step,
151151
bootup_step, conf_step, get_pkgs_step, make_step,
152-
remove_obsoletes_step
152+
remove_obsoletes_step
153153
]
154154

155155
# since i686 writes the x86_64 multilib repository,

services/nomad/build/buildsync-dist.nomad

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ job "buildsync-dist" {
3232
}
3333

3434
env {
35-
CRON_TASK_1="* * * * * flock -n /run/sync.lock rsync -vurk --delete-after -e 'ssh -i /secrets/id_rsa -o UserKnownHostsFile=/local/known_hosts' void-buildsync@b-hel-fi.node.consul:/mnt/data/pkgs/ /pkgs/"
36-
CRON_TASK_2="* * * * * flock -n /run/srcs.lock rsync -vurk --delete-after -e 'ssh -i /secrets/id_rsa -o UserKnownHostsFile=/local/known_hosts' void-buildsync@b-hel-fi.node.consul:/hostdir/sources/ /sources/"
35+
CRON_TASK_1="* * * * * flock -n /run/sync.lock rsync -vurk --delete-after -e 'ssh -i /secrets/id_rsa -o UserKnownHostsFile=/local/known_hosts' void-buildsync@a-fsn-de.node.consul:/data/pkgs/ /pkgs/"
36+
CRON_TASK_2="* * * * * flock -n /run/srcs.lock rsync -vurk --delete-after -e 'ssh -i /secrets/id_rsa -o UserKnownHostsFile=/local/known_hosts' void-buildsync@a-fsn-de.node.consul:/hostdir/sources/ /sources/"
3737
}
3838

3939
resources {
@@ -62,7 +62,7 @@ EOF
6262

6363
template {
6464
data = <<EOF
65-
b-hel-fi.node.consul ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMU4d2VBQ3GYGdPOFlvjsJupPnnCk+42hLhrGuCrGLgT
65+
a-fsn-de.node.consul ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjnTyMBnRBQD6NXA5ejX1qV2u+rjuIpRHHBWLidJOjB
6666
EOF
6767
destination = "local/known_hosts"
6868
}

services/nomad/build/root-pkgs-httpd.nomad

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ job "build-mirror" {
1515
service {
1616
name = "root-pkgs-internal"
1717
port = "http"
18-
19-
check {
20-
type = "http"
21-
address_mode = "host"
22-
path = "/"
23-
timeout = "30s"
24-
interval = "15s"
25-
}
2618
}
2719

2820
volume "root-pkgs" {

services/nomad/monitoring/repo_exporter.nomad

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ job "repo-exporter" {
1515
service {
1616
port = "metrics"
1717
tags = ["traefik.enable=true", "traefik.http.routers.repo-exporter-exporter.tls=true"]
18+
check {
19+
type = "http"
20+
port = "metrics"
21+
path = "/"
22+
address_mode = "host"
23+
interval = "30s"
24+
timeout = "2s"
25+
}
1826
}
1927

2028
task "exporter" {
2129
driver = "docker"
2230

2331
config {
24-
image = "ghcr.io/void-linux/repo-exporter:v0.0.4"
32+
image = "ghcr.io/void-linux/repo-exporter:v0.0.5"
2533
}
2634
}
2735
}

0 commit comments

Comments
 (0)