864890c11ee23fc381f8d3e34c151720de63964a
[csit.git] / resources / tools / testbed-setup / ansible / roles / nomad / defaults / main.yaml
1 ---
2 # file: roles/nomad/defaults/main.yaml
3
4 # Inst - Prerequisites.
5 packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
6
7 packages_base:
8   - "cgroup-bin"
9   - "curl"
10   - "git"
11   - "libcgroup1"
12   - "unzip"
13   - "htop"
14 packages_by_distro:
15   ubuntu:
16     - []
17 packages_by_arch:
18   aarch64:
19     - []
20   x86_64:
21     - []
22
23 # Inst - Download Nomad.
24 nomad_architecture_map:
25   amd64: "amd64"
26   x86_64: "amd64"
27   armv7l: "arm"
28   aarch64: "arm64"
29   32-bit: "386"
30   64-bit: "amd64"
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 }}"
35
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"
44
45 # Conf - Service.
46 nomad_node_role: "both"
47 nomad_restart_handler_state: "restarted"
48
49 # Conf - User and group.
50 nomad_group: "nomad"
51 nomad_group_state: "present"
52 nomad_manage_group: true
53 nomad_manage_user: true
54 nomad_user: "nomad"
55 nomad_user_groups: [ docker, nomad, root ]
56 nomad_user_state: "present"
57
58 # Conf - base.hcl
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
67
68 # Conf - tls.hcl
69 nomad_ca_file: "{{ nomad_ssl_dir }}/ca.pem"
70 nomad_cert_file: "{{ nomad_ssl_dir }}/nomad.pem"
71 nomad_http: false
72 nomad_key_file: "{{ nomad_ssl_dir }}/nomad-key.pem"
73 nomad_rpc: false
74
75 # Conf - client.hcl
76 nomad_certificates:
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 }}"
83 nomad_node_class: ""
84 nomad_no_host_uuid: true
85 nomad_options: {}
86 nomad_servers: []
87 nomad_volumes: []
88
89 # Conf - server.hcl
90 nomad_bootstrap_expect: 2
91 nomad_encrypt: ""
92 nomad_retry_join: true
93
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
103
104 # Conf - custom.hcl
105 # empty