Added avahi client tools and changed unmanaged avahi services to be removed.
This commit is contained in:
parent
88df294fb3
commit
5a76919eb2
1 changed files with 23 additions and 0 deletions
|
@ -27,6 +27,21 @@ class avahi::daemon {
|
|||
require => Package["avahi"],
|
||||
}
|
||||
|
||||
file { "/etc/avahi/services":
|
||||
ensure => present,
|
||||
purge => true,
|
||||
force => true,
|
||||
recurse => true,
|
||||
source => "puppet:///custom/empty",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
require => Package["avahi"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -76,3 +91,11 @@ define avahi::service($port = "AUTO", $description = "%h", $ensure = "present",
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
# Install avahi client support.
|
||||
#
|
||||
class avahi::client inherits avahi::daemon {
|
||||
package { "avahi-tools":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue