summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-05 23:07:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-05 23:07:21 -0300
commitf977c05da72242179b4a20f0172a0e36b4e365ef (patch)
tree0c1ab2403b3029691a2edffe47986ca07fe478ab
parentebbece3abd28864163c18ba378eadf29b352a050 (diff)
downloadpuppet-infinoted-f977c05da72242179b4a20f0172a0e36b4e365ef.tar.gz
puppet-infinoted-f977c05da72242179b4a20f0172a0e36b4e365ef.tar.bz2
Adding avahi config
-rw-r--r--files/conf.d/infinoted.service9
-rw-r--r--manifests/init.pp9
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'],
+ }
}