2 # file: roles/nomad/defaults/main.yaml
4 # Inst - Prerequisites.
5 packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
23 # Inst - Download Nomad.
24 nomad_architecture_map:
31 nomad_architecture: "{{ nomad_architecture_map[ansible_architecture] }}"
32 nomad_version: "0.12.0"
33 nomad_pkg: "nomad_{{ nomad_version }}_linux_{{ nomad_architecture }}.zip"
34 nomad_zip_url: "https://releases.hashicorp.com/nomad/{{ nomad_version }}/{{ nomad_pkg }}"
36 # Inst - System paths.
37 nomad_bin_dir: "/usr/local/bin"
38 nomad_config_dir: "/etc/nomad.d"
39 nomad_data_dir: "/var/nomad"
40 nomad_inst_dir: "/opt"
41 nomad_lockfile: "/var/lock/subsys/nomad"
42 nomad_run_dir: "/var/run/nomad"
43 nomad_ssl_dir: "/etc/nomad.d/ssl"
46 nomad_node_role: "both"
47 nomad_restart_handler_state: "restarted"
49 # Conf - User and group.
51 nomad_group_state: "present"
52 nomad_manage_group: true
53 nomad_manage_user: true
55 nomad_user_groups: [ docker, nomad, root ]
56 nomad_user_state: "present"
59 nomad_bind_addr: "0.0.0.0"
60 nomad_datacenter: "dc1"
61 nomad_disable_update_check: true
62 nomad_enable_debug: false
63 nomad_log_level: "INFO"
64 nomad_name: "{{ inventory_hostname }}"
65 nomad_region: "global"
66 nomad_syslog_enable: true
69 nomad_ca_file: "{{ nomad_ssl_dir }}/ca.pem"
70 nomad_cert_file: "{{ nomad_ssl_dir }}/nomad.pem"
72 nomad_key_file: "{{ nomad_ssl_dir }}/nomad-key.pem"
77 - src: "{{ vault_nomad_ca_file }}"
78 dest: "{{ nomad_ca_file }}"
79 - src: "{{ vault_nomad_cert_file }}"
80 dest: "{{ nomad_cert_file }}"
81 - src: "{{ vault_nomad_key_file }}"
82 dest: "{{ nomad_key_file }}"
84 nomad_no_host_uuid: true
90 nomad_bootstrap_expect: 2
92 nomad_retry_join: true
94 # Conf - telemetry.hcl
95 nomad_disable_hostname: false
96 nomad_collection_interval: 60s
97 nomad_use_node_name: false
98 nomad_publish_allocation_metrics: true
99 nomad_publish_node_metrics: true
100 nomad_backwards_compatible_metrics: false
101 nomad_telemetry_provider_parameters:
102 prometheus_metrics: true