Skip to content
Opschef cookbook avahi-daemon
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes
providers
recipes
resources
templates/default
test/support
.gitignore
.kitchen.yml
.travis.yml
CHANGES.md
README.md
Rakefile
metadata.json
metadata.rb

README.md

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
You can’t perform that action at this time.