Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class apache(
- $package_name = $apache::params::package_name,
- $service_name = $apache::params::service_name,
- $document_root = $apache::params::document_root,
- $log_dir = $apache::params::log_dir,
- $conf_dir = $apache::params::conf_dir,
- $vhost_dir = $apache::params::vhost_dir,
- $servername = $apache::params::servername
- ) inherits apache::params {
- include apache::package
- include apache::service
- file {$document_root:
- ensure =>directory,
- recurse => true,
- }
- file {$log_dir:
- ensure => directory,
- recurse => true,
- }
- apache::vhost { "default":
- port => 80,
- document_root => $document_root,
- servername => $servername,
- vhost_dir => $vhost_dir,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement