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

Last change on this file since 519 was 519, checked in by sebas, 13 years ago

agrego el servicio avahi para detectar los servidores de archivos appletalk

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        subscribe => [ Package["netatalk"] ],
33    }
34
35   package { [ "avahi-daemon" ]: ensure => installed }
36
37   file {                                                                             
38        "/etc/avahi/services/afpd.service":
39          owner   => root,
40          group   => root,
41          mode    => 644,
42          source  => "puppet:///fileserver/avahi/afpd.service",
43          notify  => Service[avahi-daemon],
44          require => Package["avahi-daemon"];
45    }
46
47    service { "avahi-daemon":
48        enable    => true,
49        ensure    => running,
50        subscribe => [ Package["avahi-daemon"] ],
51    }       
52}
Note: See TracBrowser for help on using the repository browser.