Skip to content

Commit

Permalink
Set params based on OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Sutcliffe committed Nov 2, 2011
1 parent 83d7f32 commit 1decdb1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions manifests/params.pp
@@ -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

}

0 comments on commit 1decdb1

Please sign in to comment.