O'Reilly logo
  • Bob Gamble thinks this is interesting:

Listing 2-13.  The ssh module

ssh/manifests/init.pp
 
class ssh {
 class { '::ssh::package': } ->
 class { '::ssh::config': }  ->
 class { '::ssh::service':}  ->
 Class['ssh']
}
 
 
 
ssh/manifests/install.pp
 
class ssh::install {

From

Cover of Pro Puppet, Second Edition

Note

Good reference for structure of a module