diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-05 23:07:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-05 23:07:21 -0300 |
commit | f977c05da72242179b4a20f0172a0e36b4e365ef (patch) | |
tree | 0c1ab2403b3029691a2edffe47986ca07fe478ab | |
parent | ebbece3abd28864163c18ba378eadf29b352a050 (diff) | |
download | puppet-infinoted-f977c05da72242179b4a20f0172a0e36b4e365ef.tar.gz puppet-infinoted-f977c05da72242179b4a20f0172a0e36b4e365ef.tar.bz2 |
Adding avahi config
-rw-r--r-- | files/conf.d/infinoted.service | 9 | ||||
-rw-r--r-- | manifests/init.pp | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/files/conf.d/infinoted.service b/files/conf.d/infinoted.service new file mode 100644 index 0000000..94d2d9c --- /dev/null +++ b/files/conf.d/infinoted.service @@ -0,0 +1,9 @@ +<?xml version="1.0" standalone='no'?> +<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> +<service-group> + <name replace-wildcards="yes">Infinoted/Gobby server on %h</name> + <service> + <type>_lobby._tcp</type> + <port>6523</port> + </service> +</service-group> diff --git a/manifests/init.pp b/manifests/init.pp index 55feced..0c4b7aa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -68,4 +68,13 @@ class infinoted( 'puppet:///modules/infinoted/conf.d/infinoted.conf' ], require => [ File['/var/lib/infinoted/.config/infinoted.conf'], Exec['infinoted-gen-keys'] ], } + + file { '/etc/avahi/services/infinoted.service': + ensure => present, + owner => root, + group => root, + mode => 0644, + source => 'puppet:///modules/infinoted/conf.d/infinoted.service', + notify => Service['avahi-daemon'], + } } |