class ftpserver { $ftphome = "/home/ftp" # # Make sure anonymous ftp areas have the correct # protection, or logins won't be able to read # files - or perhaps a security risk. This is # solaris 2 specific... # file { "$ftphome/pub": mode => 644, owner => root, group => other; "$ftphome/pub": mode => 644, recurse => true; # FIXME i can't specifically operate on directories #act => fixdirs "$ftphome/etc": mode => 111, owner => root, group => other; "$ftphome/usr/bin/ls": mode => 111, owner => root, group => other; "$ftphome/dev": mode => 555, owner => root, group => other; #act => fixdirs "$ftphome/usr": mode => 555, owner => root, group => other; "/etc/shells": mode => 644, source => "puppet://$server/dist/common/shells" } # FIXME need some way to verify a line is in a file # #{ /etc/shells # # AppendIfNoSuchLine "/usr/bin/bash" # } # }