From 60399ae897a2350cb22679459b284a9baee8bea2 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 9 Dec 2023 14:56:03 +0900 Subject: [PATCH] Install `avahi-daemon`. --- cookbooks/base/packages.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cookbooks/base/packages.rb b/cookbooks/base/packages.rb index 0ca788c..055000e 100644 --- a/cookbooks/base/packages.rb +++ b/cookbooks/base/packages.rb @@ -62,3 +62,13 @@ end mode '755' end end + +# mDNS +package 'avahi-daemon' + +execute 'ufw allow 5353/udp' do + user 'root' + + not_if 'LANG=c ufw status | grep 5353' + notifies :run, 'execute[ufw reload-or-enable]' +end