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] }}"
22 # Inst - Download Nomad.
23 nomad_architecture_map:
30 nomad_architecture: "{{ nomad_architecture_map[ansible_architecture] }}"
31 nomad_version: "0.10.2"
32 nomad_pkg: "nomad_{{ nomad_version }}_linux_{{ nomad_architecture }}.zip"
33 nomad_zip_url: "https://releases.hashicorp.com/nomad/{{ nomad_version }}/{{ nomad_pkg }}"
35 # Inst - System paths.
36 nomad_bin_dir: "/usr/local/bin"
37 nomad_config_dir: "/etc/nomad.d"
38 nomad_data_dir: "/var/nomad"
39 nomad_inst_dir: "/opt"
40 nomad_lockfile: "/var/lock/subsys/nomad"
41 nomad_run_dir: "/var/run/nomad"
42 nomad_ssl_dir: "/etc/nomad.d/ssl"
45 nomad_node_role: "both"
46 nomad_restart_handler_state: "restarted"
48 # Conf - User and group.
50 nomad_group_state: "present"
51 nomad_manage_group: true
52 nomad_manage_user: true
54 nomad_user_groups: [ docker, nomad, root ]
55 nomad_user_state: "present"
58 nomad_bind_addr: "0.0.0.0"
59 nomad_datacenter: "dc1"
60 nomad_disable_update_check: true
61 nomad_enable_debug: false
62 nomad_log_level: "INFO"
63 nomad_name: "{{ inventory_hostname }}"
64 nomad_region: "global"
65 nomad_syslog_enable: true
68 nomad_ca_file: "{{ nomad_ssl_dir }}/ca.pem"
69 nomad_cert_file: "{{ nomad_ssl_dir }}/nomad.pem"
71 nomad_key_file: "{{ nomad_ssl_dir }}/nomad-key.pem"
76 - src: "{{ vault_nomad_ca_file }}"
77 dest: "{{ nomad_ca_file }}"
78 - src: "{{ vault_nomad_cert_file }}"
79 dest: "{{ nomad_cert_file }}"
80 - src: "{{ vault_nomad_key_file }}"
81 dest: "{{ nomad_key_file }}"
83 nomad_no_host_uuid: true
88 nomad_bootstrap_expect: 2
90 nomad_retry_join: true