From 5a76919eb25b245779e61bad5a5561533171ac23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 21 Jun 2010 19:15:26 +0300 Subject: [PATCH] Added avahi client tools and changed unmanaged avahi services to be removed. --- avahi/manifests/init.pp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/avahi/manifests/init.pp b/avahi/manifests/init.pp index 82d903b..6268aff 100644 --- a/avahi/manifests/init.pp +++ b/avahi/manifests/init.pp @@ -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, + } +}