Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

jackl0phty/opschef-cookbook-avahi-daemon

Repository files navigation

ko-fi Travis-ci status: Build Status

Description

Installs/enables or Uninstalls/disables the avahi-daemon service.

Requirements

This cookbook currently supports the following platforms:

Debian, Ubuntu

Attributes

Set the avahi-daemon service name.

default['avahi-daemon']['service']['name'] = "avahi-daemon"

Set the avahi-daemon config filename.


default['avahi-daemon']['service']['config'] = "/etc/avahi/avahi-daemon.conf"

Comma separated list of domains to lookup with with mDNS. Will be /etc/mdns.allow content. If not defined no file will be created, and only .local domain is used. Put '*' to allow any domain lookup.


node['avahi-daemon']['mdns-allow']

Set config file values. Use node['avahi-daemon'][config_section][config_parameter] = "value" syntax. Please see man avahi-daemon.conf for details.

Example:


node['avahi-daemon']['server']['use-ipv4'] = "no"

Usage

Apply recipe avahi-daemon::enable to install/enable all avahi-daemon related services.

Recipe avahi-daemon::default takes no action.

avahi-daemon::disable recipe

Use a knife command to remove avahi-daemon components from your system like so

knife node run_list add avahi-daemon::disable

Resources

The avahi_daemon_service resource can be used to generate /etc/avahi/services/*.service files. This will tell Avahi what services to advertise.

For example:


avahi_daemon_service 'afpd' do
  services [
    {
      :type => '_afpovertcp._tcp',
      :port => 548
    },
    {
      :type => '_device-info._tcp',
      :port => 0,
      :txt_records => ['model=Xserve']
    }]
end

About

Opschef cookbook avahi-daemon

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •