add cpu total compute override parameter

This commit is contained in:
vincent 2024-10-29 19:06:33 +01:00
parent 151fca0b02
commit 7a949187eb
2 changed files with 8 additions and 4 deletions

View File

@ -1,10 +1,10 @@
---
nomad_server: True
nomad_server: true
nomad_data_dir: /opt/nomad
nomad_bind_addr: 0.0.0.0
nomad_datacenter: dc1
nomad_bootstrap_expect: 3
nomad_vault_enabled: False
nomad_vault_enabled: false
nomad_vault_address: "https://active.vault.service.consul:8200"
nomad_vault_token_ttl: "1h"
nomad_vault_namespace: ""
@ -21,12 +21,13 @@ nomad_host_networks:
# cidr:
# interface:
# reserved_ports:
nomad_allow_privileged: False
nomad_plugins_podman: False
nomad_allow_privileged: false
nomad_plugins_podman: false
nomad_docker_extra_labels: []
nomad_docker_allow_caps: []
nomad_client_network_interface:
nomad_client_cpu_total_compute:
nomad_client_meta: []
# - name:
# value:

View File

@ -12,6 +12,9 @@ client {
{% if nomad_client_network_interface %}
network_interface = "{{ nomad_client_network_interface }}"
{% endif %}
{% if nomad_client_cpu_total_compute %}
cpu_total_compute: {{ nomad_client_cpu_total_compute}}
{% endif %}
{% if nomad_client_meta %}
meta {
{% for meta in nomad_client_meta %}