Skip to content

Commit d4ea447

Browse files
committed
nomad: add cpu_total_compute option
1 parent 476f02e commit d4ea447

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/nomad/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ nomad__client_reserved_ports:
5353
- "22"
5454
- "8500-8600"
5555

56+
nomad__client_cpu_total_compute: null
57+
5658
# Host volumes
5759
nomad__client_host_volume_basepath: "/mnt"
5860
nomad__client_host_volumes: []

roles/nomad/templates/client.hcl.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ client {
2626
reserved_ports = "{{ nomad__client_reserved_ports | join(',') }}"
2727
}
2828

29+
{% if nomad__client_cpu_total_compute is not none %}
30+
cpu_total_compute = {{ nomad__client_cpu_total_compute }}
31+
{% endif %}
32+
2933
{% for host_network in nomad__client_host_networks %}
3034
host_network "{{ host_network.name }}" {
3135
cidr = "{{ host_network.cidr }}"

0 commit comments

Comments
 (0)