add bundle:avahi-daemon
This commit is contained in:
parent
9395fcb7f5
commit
91432197e8
3 changed files with 45 additions and 0 deletions
21
bundles/avahi-daemon/files/avahi-daemon.conf
Normal file
21
bundles/avahi-daemon/files/avahi-daemon.conf
Normal file
|
@ -0,0 +1,21 @@
|
|||
[server]
|
||||
host-name=${node.name.split('.')[-1]}
|
||||
use-ipv4=yes
|
||||
use-ipv6=yes
|
||||
ratelimit-interval-usec=1000000
|
||||
ratelimit-burst=1000
|
||||
|
||||
[wide-area]
|
||||
enable-wide-area=yes
|
||||
|
||||
[publish]
|
||||
disable-publishing=no
|
||||
disable-user-service-publishing=no
|
||||
publish-hinfo=yes
|
||||
publish-workstation=no
|
||||
publish-aaaa-on-ipv4=yes
|
||||
publish-a-on-ipv6=no
|
||||
|
||||
[reflector]
|
||||
|
||||
[rlimits]
|
17
bundles/avahi-daemon/items.py
Normal file
17
bundles/avahi-daemon/items.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
directories['/etc/avahi/services'] = {
|
||||
'purge': True,
|
||||
}
|
||||
|
||||
files['/etc/avahi/avahi-daemon.conf'] = {
|
||||
'content_type': 'mako',
|
||||
'triggers': {
|
||||
'svc_systemd:avahi-daemon:restart',
|
||||
},
|
||||
}
|
||||
|
||||
svc_systemd['avahi-daemon'] = {
|
||||
'needs': {
|
||||
'file:/etc/avahi/avahi-daemon.conf',
|
||||
'pkg_apt:avahi-daemon',
|
||||
},
|
||||
}
|
7
bundles/avahi-daemon/metadata.py
Normal file
7
bundles/avahi-daemon/metadata.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'avahi-daemon': {},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue