Last change
on this file since 685 was
638,
checked in by sebas@…, 15 years ago
|
nombre exacto del servicio avahi-daemon
|
File size:
1.5 KB
|
Rev | Line | |
---|
[518] | 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, |
---|
[522] | 32 | pattern => "afpd", |
---|
[518] | 33 | subscribe => [ Package["netatalk"] ], |
---|
| 34 | } |
---|
| 35 | |
---|
[519] | 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, |
---|
[638] | 51 | pattern => "avahi-daemon:", |
---|
[519] | 52 | subscribe => [ Package["avahi-daemon"] ], |
---|
| 53 | } |
---|
[518] | 54 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.