]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
maas dns role for configuring maas dns domains and records wip-maas-dns 778/head
authorAdam Kraitman <akraitma@li-8b09b2cc-35b7-11b2-a85c-cd1dbade58f9.ibm.com>
Mon, 24 Mar 2025 21:23:22 +0000 (23:23 +0200)
committerAdam Kraitman <akraitma@li-8b09b2cc-35b7-11b2-a85c-cd1dbade58f9.ibm.com>
Wed, 16 Jul 2025 13:50:57 +0000 (16:50 +0300)
commitd0780e2810001e8e517a1cb26a85eee98b382763
tree8a443c941cd3ab4c5d8174e4a121f75e0d68bee9
parentfcd39aa296efb2d3c188be8703274a0fce512a52
maas dns role for configuring maas dns domains and records

- Configures DNS entries for hosts (e.g., main interfaces, IPMI interfaces) using `dns_domains` and inventory variables (`ip`, `ipmi`).
- Dynamically sets `maas_cluster_instance.host` via `maas_api_url` in `defaults/main.yml`, with credentials (`customer_key`, `token_key`, `token_secret`) loaded from a secrets file (`secrets/maas.yml`).
- Filters inventory to process only hosts with `ip` or `ipmi` variables, excluding groups like `all` and `ungrouped`.
- Cleans up unwanted DNS records and domains not in `dns_domains` or `excluded_domains`, skipping default MAAS domains.
- Skips NS record creation due to module limitations, with instructions for manual creation via MAAS CLI/UI.
- Includes comprehensive `README.md` with:
  - Inventory example with `mac`, `ip`, `ipmi`, and `bmc` attributes (e.g., `server01.example.com mac=00:1a:2b:3c:4d:5e ip=192.168.1.11 ipmi=192.168.2.11 bmc=00:1a:2b:3c:4d:5f`).
  - Setup instructions for inventory, secrets, and variables.
  - Troubleshooting for common issues (e.g., network errors, missing `dns_domains`).
  - Performance tips (e.g., fact caching).
- Ensures idempotency and supports large inventories.
maas_nameserver.yml [new file with mode: 0644]
roles/maas_nameserver/README.md [new file with mode: 0644]
roles/maas_nameserver/defaults/main.yml [new file with mode: 0644]
roles/maas_nameserver/meta/main.yml [new file with mode: 0644]
roles/maas_nameserver/tasks/main.yml [new file with mode: 0644]