mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 08:54:42 +02:00
feat: initial commit — Ansible roles storage-01/gpu-01 opérationnels
This commit is contained in:
commit
b3fce8af5d
70 changed files with 2688 additions and 0 deletions
31
ansible/roles/dnsmasq/templates/dnsmasq.conf.j2
Normal file
31
ansible/roles/dnsmasq/templates/dnsmasq.conf.j2
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Géré par Ansible — ne pas modifier manuellement
|
||||
|
||||
# Écoute uniquement sur le LAN cluster
|
||||
interface={{ lan_interface }}
|
||||
bind-interfaces
|
||||
|
||||
# Domaine local
|
||||
domain={{ dns_domain }}
|
||||
local=/{{ dns_domain }}/
|
||||
expand-hosts
|
||||
|
||||
# Ne pas lire /etc/resolv.conf pour les upstream
|
||||
no-resolv
|
||||
|
||||
# Upstream DNS pour tout ce qui n'est pas lab.local
|
||||
{% for server in dns_upstream %}
|
||||
server={{ server }}
|
||||
{% endfor %}
|
||||
|
||||
# Enregistrements statiques des machines du cluster
|
||||
{% for host in dns_cluster_hosts %}
|
||||
address=/{{ host.name }}.{{ dns_domain }}/{{ host.ip }}
|
||||
address=/{{ host.name }}/{{ host.ip }}
|
||||
{% endfor %}
|
||||
|
||||
# Cache
|
||||
cache-size=1000
|
||||
|
||||
# Logs (désactiver en prod si trop verbeux)
|
||||
log-queries
|
||||
log-facility=/var/log/dnsmasq.log
|
||||
Loading…
Add table
Add a link
Reference in a new issue