43 lines
1.6 KiB
Django/Jinja
43 lines
1.6 KiB
Django/Jinja
# Local zones for Nebula overlay network
|
|
# Generated by Ansible from inventory - do not edit manually
|
|
|
|
# ============================================================
|
|
# .nebula zone - All VMs
|
|
# ============================================================
|
|
local-zone: "nebula." static
|
|
|
|
# Lighthouse (not in inventory, uses variable)
|
|
local-data: "lighthouse.nebula. IN A {{ lighthouse_nebula_ip }}"
|
|
local-data-ptr: "{{ lighthouse_nebula_ip }} lighthouse.nebula"
|
|
|
|
# Proxmox host (not in inventory)
|
|
local-data: "proxmox.nebula. IN A 10.10.10.1"
|
|
local-data-ptr: "10.10.10.1 proxmox.nebula"
|
|
|
|
# Windows AD VMs (not in Ansible inventory, manually provisioned)
|
|
local-data: "dc01.nebula. IN A 10.10.10.13"
|
|
local-data-ptr: "10.10.10.13 dc01.nebula"
|
|
local-data: "ca01.nebula. IN A 10.10.10.15"
|
|
local-data-ptr: "10.10.10.15 ca01.nebula"
|
|
local-data: "rds01.nebula. IN A 10.10.10.16"
|
|
local-data-ptr: "10.10.10.16 rds01.nebula"
|
|
|
|
# All VMs from inventory
|
|
{% for host in groups['all'] %}
|
|
local-data: "{{ host }}.nebula. IN A {{ hostvars[host]['nebula_ip'] }}"
|
|
local-data-ptr: "{{ hostvars[host]['nebula_ip'] }} {{ host }}.nebula"
|
|
{% endfor %}
|
|
|
|
# ============================================================
|
|
# Custom domain aliases (optional)
|
|
# Add your own domain mappings here
|
|
# ============================================================
|
|
# Example:
|
|
# local-zone: "myapp.infra.example." static
|
|
# local-data: "myapp.infra.example. IN A {{ hostvars['app-server']['nebula_ip'] }}"
|
|
|
|
# ============================================================
|
|
# Reverse DNS zone for 10.10.10.0/24
|
|
# ============================================================
|
|
local-zone: "10.10.10.in-addr.arpa." static
|