Initial IaC setup: Nomad, Consul, Terraform, Ansible
- Ansible roles for Nomad and Consul installation - Nomad job specs for Traefik and monitoring stack - Terraform configuration for Nomad job management - Enterprise naming convention inventory - HashiCorp stack deployment playbook
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Consul Configuration
|
||||
# Managed by Ansible
|
||||
|
||||
datacenter = "{{ datacenter }}"
|
||||
data_dir = "{{ consul_data_dir }}/data"
|
||||
node_name = "{{ inventory_hostname }}"
|
||||
|
||||
bind_addr = "{{ ansible_host }}"
|
||||
client_addr = "0.0.0.0"
|
||||
|
||||
ui_config {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
# DNS settings
|
||||
dns_config {
|
||||
allow_stale = true
|
||||
}
|
||||
|
||||
# Service mesh
|
||||
connect {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
# Telemetry
|
||||
telemetry {
|
||||
prometheus_retention_time = "24h"
|
||||
disable_hostname = true
|
||||
}
|
||||
|
||||
# Performance
|
||||
performance {
|
||||
raft_multiplier = 1
|
||||
}
|
||||
Reference in New Issue
Block a user