#SPDX-License-Identifier: MIT-0
---
# Group variables for all hosts

# Consul-template configuration
consul_template:
  version: "0.37.4"
  user: "consul-template"
  group: "consul-template"
  install_dir: "/usr/local/bin"
  config_dir: "/etc/consul-template"
  log_level: "INFO"
  
# Certificate deployment paths
certificate_paths:
  cert_dir: "/etc/ssl/certs"
  private_dir: "/etc/ssl/private"
  cert_file: "{{ short_hostname }}.pem"
  private_key_file: "{{ short_hostname }}.key"
  chain_file: "le-chaincert.pem"

# Service restart commands
service_reload_commands:
  nginx: "systemctl reload nginx"
  apache: "systemctl reload apache2"
  default: "systemctl reload nginx"

# Architecture mapping for consul-template binary download
arch_mapping:
  x86_64: amd64
  aarch64: arm64
  armv7l: arm