Advertisement
varkanduku

Untitled

Oct 26th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.74 KB | None | 0 0
  1. class apache::params{
  2.  
  3. if($::fqdn) {
  4.         $servername = $::fqdn
  5. } else {
  6.         $servername = $::hostname
  7. }
  8.  
  9. $document_root = "/var/www/websites"
  10. $log_dir = "/var/log/apache"
  11.  
  12. case $::osfamily{
  13.         'Redhat' : {
  14.                 $package_name           = "httpd"
  15.                 $service_name           = "httpd"
  16.                 $conf_dir               = "/etc/httpd/conf"
  17.                 $vhost_dir              = "/etc/httpd/conf.d"
  18.                 }
  19.  
  20.         'Debian' : {
  21.                 $package_name           = "apache2"
  22.                 $service_name           = "apache2"
  23.                 $conf_dir               = "/etc/apache2"
  24.                 $vhost_dir              = "/etc/apache2/sites-enabled"
  25.                 }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement