diff --git a/roles/nomad/defaults/main.yml b/roles/nomad/defaults/main.yml new file mode 100644 index 0000000..6680464 --- /dev/null +++ b/roles/nomad/defaults/main.yml @@ -0,0 +1,68 @@ +--- +# Nomad version +nomad_version: "1.7.3" + +# Datacenter name (should match Consul) +nomad_datacenter: "hf-dc1" + +# Region +nomad_region: "global" + +# Bind address +nomad_bind_addr: "0.0.0.0" + +# Data directory +nomad_data_dir: "/opt/nomad/data" + +# Config directory +nomad_config_dir: "/etc/nomad.d" + +# Log level +nomad_log_level: "INFO" + +# Server mode (override in inventory) +nomad_server: false + +# Bootstrap expect (number of servers) +nomad_bootstrap_expect: 1 + +# Server join addresses +nomad_retry_join: [] + +# Client mode +nomad_client: true + +# Client node class (optional) +nomad_node_class: "" + +# Client meta (key-value pairs for constraints) +nomad_meta: {} + +# Enable Docker driver +nomad_driver_docker: true + +# Enable raw_exec driver (use with caution) +nomad_driver_raw_exec: false + +# Enable QEMU driver (for VMs) +nomad_driver_qemu: true + +# Consul integration +nomad_consul_address: "127.0.0.1:8500" +nomad_consul_auto_advertise: true +nomad_consul_server_auto_join: true +nomad_consul_client_auto_join: true + +# Vault integration (disabled by default) +nomad_vault_enabled: false +nomad_vault_address: "" + +# Host volumes (for persistent storage) +nomad_host_volumes: [] +# Example: +# - name: "docker-data" +# path: "/data/docker" +# read_only: false + +# CNI plugins for bridge networking +nomad_cni_version: "1.4.0"