diff --git a/defaults/main.yml b/defaults/main.yml index 80de496..e3ad970 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: diff --git a/templates/config.hcl.j2 b/templates/config.hcl.j2 index 8693de9..3e21c18 100644 --- a/templates/config.hcl.j2 +++ b/templates/config.hcl.j2 @@ -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 %}