Skip to content

Commit 016033e

Browse files
committed
{services,ansible}: Sync mirrors to b-hel-fi
1 parent 359e42f commit 016033e

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ xbps_repository_multilib: http://{{ xbps_repository_address }}/current/musl/mult
2121
xbps_repository_multilib_nonfree: http://{{ xbps_repository_address }}/current/musl/multilib/nonfree
2222

2323
netlogon_use_cache: false
24+
25+
nomad_host_volumes:
26+
- name: root_mirror
27+
path: /data/root_mirror
28+
read_only: true
29+
- name: dist_pkgs
30+
path: /data/root_mirror/current
31+
read_only: false
32+
- name: dist_sources
33+
path: /data/sources_mirror
34+
read_only: false

services/nomad/build/buildsync-dist.nomad

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ job "buildsync-dist" {
44
namespace = "build"
55

66
group "rsync" {
7+
count = 2
8+
79
network { mode = "bridge" }
810

11+
constraint {
12+
operator = "distinct_hosts"
13+
value = "true"
14+
}
15+
916
volume "dist-pkgs" {
1017
type = "host"
1118
source = "dist_pkgs"

0 commit comments

Comments
 (0)