Last change
on this file since 546 was
522,
checked in by sebas, 15 years ago
|
agregamos el patern necesario para detectar si el servicio esta andando
|
File size:
1.5 KB
|
Line | |
---|
1 | class 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 | |
---|
8 | class 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 | subscribe => [ Package["avahi-daemon"] ], |
---|
52 | } |
---|
53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.