forked from theforeman/puppet-apache
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Greg Sutcliffe
committed
Nov 2, 2011
1 parent
83d7f32
commit 1decdb1
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
class apache::params { | ||
$user = "apache" # Change to www-data for Debian | ||
$group = "apache" # Change to www-data for Debian | ||
case $operatingsystem { | ||
Debian,Ubuntu: { | ||
$user = "www-data" | ||
$group = "www-data" | ||
$configdir = "/etc/apache2/conf.d" | ||
$conffile = "apache2.conf" | ||
} | ||
default: { | ||
$user = "apache" | ||
$group = "apache" | ||
$configdir = "/etc/httpd/conf.d" | ||
$conffile = "httpd.conf" | ||
} | ||
} | ||
|
||
$home = "/var/www" | ||
$configdir = "/etc/httpd/conf.d" # Change to /etc/apache2/conf.d for Debian | ||
$conffile = "/etc/httpd/conf/httpd.conf" # Change to apache2.conf for Debian | ||
|
||
} |