class fileserver { } class fileserver::apple { # http://blog.delacelle.com/post/2009/01/19/tuto-comment-creer-votre-serveur-timecapsule-sous-debian-ou-ubuntu/ package { [ "netatalk" ]: ensure => installed } file { "/etc/default/netatalk": owner => root, group => root, mode => 644, source => "puppet:///files/daemons/netatalk/netatalk", notify => Service[netatalk], require => Package["netatalk"]; } file { "/etc/netatalk/afpd.conf": owner => root, group => root, mode => 644, source => "puppet:///files/daemons/netatalk/afpd.conf", notify => Service[netatalk], require => Package["netatalk"]; } file { "/etc/netatalk/AppleVolumes.default": owner => root, group => root, mode => 644, source => "puppet:///files/daemons/netatalk/AppleVolumes.default", notify => Service[netatalk], require => Package["netatalk"]; } service { "netatalk": enable => true, ensure => running, subscribe => [ Package["netatalk"] ], } }