Skip to content

Commit 0f0238e

Browse files
committed
ansible: Reserve ports on a-hel-fi
1 parent 177ee6a commit 0f0238e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,8 @@ nomad_host_volumes:
123123
- name: musl_hostdir
124124
path: /hostdir
125125
read_only: false
126+
127+
nomad_reserved_ports:
128+
- 80 # Legacy nginx on this host
129+
- 443 # Legacy nginx on this host
130+
- 873 # Externally managed rsync on this host

ansible/roles/nomad-client/templates/40-client.hcl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
#jinja2: trim_blocks: "true", lstrip_blocks: "true"
1+
#Jinja2: trim_blocks: "true", lstrip_blocks: "true"
22
client {
33
enabled = true
44
network_interface = "void0"
55
cni_path = "/usr/libexec/cni"
66
gc_interval = "10m"
77

8+
reserved {
9+
cpu = 250
10+
memory = 512
11+
12+
reserved_ports = "{{nomad_reserved_ports|default([])|join(",")}}"
13+
}
14+
815
host_volume "netauth_config" {
916
path = "/etc/netauth"
1017
read_only = true

0 commit comments

Comments
 (0)