source: trunk/puppet/modules/puppet-fileserver/manifests/init.pp @ 707

Last change on this file since 707 was 638, checked in by sebas@…, 15 years ago

nombre exacto del servicio avahi-daemon

File size: 1.5 KB
Line 
1class fileserver {
2
3}
4
5
6# http://blog.delacelle.com/post/2009/01/19/tuto-comment-creer-votre-serveur-timecapsule-sous-debian-ou-ubuntu/
7
8class fileserver::netatalk {
9
10    package { [ "netatalk" ]: ensure => installed }
11
12    file {
13        "/etc/default/netatalk":
14          owner   => root,
15          group   => root,
16          mode    => 644,
17          source  => "puppet:///fileserver/netatalk/netatalk",
18          notify  => Service[netatalk],
19          require => Package["netatalk"];
20        "/etc/netatalk/AppleVolumes.default":
21          owner   => root,
22          group   => root,
23          mode    => 644,
24          source  => "puppet:///fileserver/netatalk/AppleVolumes.default",
25          notify  => Service[netatalk],
26          require => Package["netatalk"];
27    }
28
29    service { "netatalk":
30        enable    => true,
31        ensure    => running,
32        pattern   => "afpd",
33        subscribe => [ Package["netatalk"] ],
34    }
35
36   package { [ "avahi-daemon" ]: ensure => installed }
37
38   file {                                                                             
39        "/etc/avahi/services/afpd.service":
40          owner   => root,
41          group   => root,
42          mode    => 644,
43          source  => "puppet:///fileserver/avahi/afpd.service",
44          notify  => Service[avahi-daemon],
45          require => Package["avahi-daemon"];
46    }
47
48    service { "avahi-daemon":
49        enable    => true,
50        ensure    => running,
51        pattern   => "avahi-daemon:",
52        subscribe => [ Package["avahi-daemon"] ],
53    }       
54}
Note: See TracBrowser for help on using the repository browser.