forked from benhoskings/babushka-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdns.rb
34 lines (30 loc) · 936 Bytes
/
mdns.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dep 'mdns.managed' do
installs {
via :apt, 'avahi-daemon'
}
provides []
end
dep "mdns-scan.managed"
dep "avahi-utils.managed" do
provides ['avahi-browse', 'avahi-publish', 'avahi-resolve']
end
dep "libavahi-common-dev.managed" do
provides []
end
dep "libavahi-compat-libdnssd1.managed" do
provides []
end
dep "libavahi-compat-libdnssd-dev.managed" do
provides []
end
dep "mdns.complete" do
requires "mdns.managed", "mdns-scan.managed", "avahi-utils.managed", "libavahi-common-dev.managed", "libavahi-compat-libdnssd1.managed", "libavahi-compat-libdnssd-dev.managed"
end
dep "avahi enable reflector" do
change_line "#enable-reflector=no", "enable-reflector=yes", "/etc/avahi/avahi-daemon.conf"
sudo "/etc/init.d/avahi-daemon restart"
end
dep "avahi disable reflector" do
change_line "enable-reflector=yes", "#enable-reflector=no", "/etc/avahi/avahi-daemon.conf"
sudo "/etc/init.d/avahi-daemon restart"
end