l3d.avahi_daemon

Ansible Galaxy MIT License Maintainance

ansible role avahi_daemon

avahi_daemonをインストールし、任意でサービスをアナウンスするためのAnsibleロールです。

変数

avahi_daemon__services変数で、アナウンスしたいサービスを定義できます。 以下は利用可能なパラメータのリストです:

  • service: サービス名 *(HTTP/SSH/...) * (必須)
  • port: サービスポート (必須)
  • name: サービスをアナウンスするためのオプションの名前
  • protocol: any/ipv6/ipv4
  • txt_records: TXTレコードの配列
  • transport: トランスポートプロトコル (tcp/udp)

例:

---
avahi_daemon__services:
  - service: 'SSH'
    port: 22
    protocol: 'any'
    transport: 'tcp'
  - service: 'NFS'
    name: 'ファイル共有ホスト %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ルール

Avahiはマルチキャストを使用してサービスをアナウンスします。 マルチキャストDNSのためのnetfilterルールを追加するのを忘れないでください。

ferm用の設定例:

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

Ansibleコレクション

このロールはl3d.avahi Ansibleコレクションの一部です。

collection l3d.avahi Maintainance License

l3d.avahiコレクションのREADME.mdを訪れて、コレクションのダウンロードや、あなたのAnsibleプレイブックへの統合に関する情報を得てください。

ロール使用例:

リンク
-----
* 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
プロジェクトについて

Install avahi and optionally announce avahi services

インストール
ansible-galaxy install l3d.avahi_daemon
ライセンス
mit
ダウンロード
480
所有者
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy