Last change
on this file since 765 was
729,
checked in by sebas@…, 14 years ago
|
formateo y saco una config del servicio netatalk que no es necesaria
|
File size:
1.5 KB
|
Rev | Line | |
---|
[518] | 1 | class fileserver { |
---|
| 2 | |
---|
| 3 | } |
---|
| 4 | |
---|
| 5 | # http://blog.delacelle.com/post/2009/01/19/tuto-comment-creer-votre-serveur-timecapsule-sous-debian-ou-ubuntu/ |
---|
| 6 | |
---|
| 7 | class fileserver::netatalk { |
---|
| 8 | |
---|
| 9 | package { [ "netatalk" ]: ensure => installed } |
---|
| 10 | |
---|
| 11 | file { |
---|
| 12 | "/etc/default/netatalk": |
---|
| 13 | owner => root, |
---|
| 14 | group => root, |
---|
| 15 | mode => 644, |
---|
| 16 | source => "puppet:///fileserver/netatalk/netatalk", |
---|
| 17 | notify => Service[netatalk], |
---|
| 18 | require => Package["netatalk"]; |
---|
| 19 | "/etc/netatalk/AppleVolumes.default": |
---|
| 20 | owner => root, |
---|
| 21 | group => root, |
---|
| 22 | mode => 644, |
---|
| 23 | source => "puppet:///fileserver/netatalk/AppleVolumes.default", |
---|
| 24 | notify => Service[netatalk], |
---|
| 25 | require => Package["netatalk"]; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | service { "netatalk": |
---|
| 29 | ensure => running, |
---|
[522] | 30 | pattern => "afpd", |
---|
[518] | 31 | subscribe => [ Package["netatalk"] ], |
---|
| 32 | } |
---|
| 33 | |
---|
[519] | 34 | package { [ "avahi-daemon" ]: ensure => installed } |
---|
| 35 | |
---|
| 36 | file { |
---|
| 37 | "/etc/avahi/services/afpd.service": |
---|
| 38 | owner => root, |
---|
| 39 | group => root, |
---|
| 40 | mode => 644, |
---|
| 41 | source => "puppet:///fileserver/avahi/afpd.service", |
---|
| 42 | notify => Service[avahi-daemon], |
---|
| 43 | require => Package["avahi-daemon"]; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | service { "avahi-daemon": |
---|
| 47 | ensure => running, |
---|
[638] | 48 | pattern => "avahi-daemon:", |
---|
[519] | 49 | subscribe => [ Package["avahi-daemon"] ], |
---|
| 50 | } |
---|
[518] | 51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.