Advertisement
varkanduku

Untitled

Oct 26th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.01 KB | None | 0 0
  1.  
  2.  
  3. class apache(
  4.  
  5.         $package_name           = $apache::params::package_name,
  6.         $service_name           = $apache::params::service_name,
  7.         $document_root          = $apache::params::document_root,
  8.         $log_dir                = $apache::params::log_dir,
  9.         $conf_dir               = $apache::params::conf_dir,
  10.         $vhost_dir              = $apache::params::vhost_dir,
  11.         $servername             = $apache::params::servername
  12.  
  13.         ) inherits apache::params {
  14. include apache::package
  15. include apache::service
  16.  
  17.  
  18. file {$document_root:
  19.  
  20.                 ensure          =>directory,
  21.                 recurse         => true,
  22.         }
  23.  
  24. file {$log_dir:
  25.  
  26.                 ensure          => directory,
  27.                 recurse         => true,
  28.         }
  29. apache::vhost { "default":
  30.                 port            => 80,
  31.                 document_root   => $document_root,
  32.                 servername      => $servername,
  33.                 vhost_dir       => $vhost_dir,
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement