l3d.avahi_daemon

Ansible Rolle avahi_daemon

================================ Ansible Rolle zum Installieren des avahi_daemon und optional zum Ankündigen einiger Dienste.

Variablen

In der Variable avahi_daemon__services kannst du die Dienste definieren, die du ankündigen möchtest. Hier ist eine Liste der verfügbaren Parameter:

  • service: Dienstname (HTTP/SSH/...) (erforderlich)
  • port: Dienstport (erforderlich)
  • name: optionaler Name zur Ankündigung des Dienstes
  • protocol: any/ipv6/ipv4
  • txt_records: ein Array von TXT-Datensätzen
  • transport: Transportprotokoll (tcp/udp)

Beispiel:

---
avahi_daemon__services:
  - service: 'SSH'
    port: 22
    protocol: 'any'
    transport: 'tcp'
  - service: 'NFS'
    name: 'Dateifreigabe Host %h'
    port: 2049
    protocol: 'ipv6'
    txt_records:
      - 'path=/path/to/nfsexport'
  - service: 'FTP'
    port: '21'
    protocol: 'ipv4'
    txt_records:
      - 'path=/ftppath'
      - 'u=ftpuser'
      - 'p=ftppass'

Netfilter-Regeln

Avahi verwendet Multicast, um Dienste anzukündigen. Vergiss nicht, Netfilter-Regeln für Multicast-DNS hinzuzufügen.

Konfigurationsbeispiel für ferm:

# mdns
daddr 224.0.0.251 proto udp dport 5353 ACCEPT;
daddr ff02::fb proto udp dport 5353 ACCEPT;

Ansible Sammlung

Diese Rolle ist Teil der l3d.avahi Ansible Sammlung.

Besuche die README.md der l3d.avahi Sammlung für Informationen zum Herunterladen oder Integrieren der Sammlung in dein Ansible-Playbook.

Beispiel zur Nutzung der Rolle:

Links
-----
* http://dns-sd.org/
* http://www.multicastdns.org/
* https://www.ietf.org/rfc/rfc6762.txt
* http://www.dns-sd.org/ServiceTypes.html

- https://www.avahi.org/
- https://github.com/lathiat/avahi

+ https://github.com/lathiat/avahi/blob/master/avahi-daemon/avahi-service.dtd

* https://github.com/lathiat/nss-mdns
Über das Projekt

Install avahi and optionally announce avahi services

Installieren
ansible-galaxy install l3d.avahi_daemon
GitHub Repository
Lizenz
mit
Downloads
480
Besitzer
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy