Installs/enables or Uninstalls/disables the avahi-daemon service.
This cookbook currently supports the following platforms:
Debian, Ubuntu
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"
Apply recipe avahi-daemon::enable to install/enable all avahi-daemon related services.
Recipe avahi-daemon::default takes no action.
Use a knife command to remove avahi-daemon components from your system like so
knife node run_list add avahi-daemon::disable
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