Permalink
Browse files

Set params based on OS

  • Loading branch information...
1 parent 83d7f32 commit 1decdb1f9a23c6e81184bcfa26e0911156b78415 Greg Sutcliffe committed Nov 2, 2011
Showing with 16 additions and 4 deletions.
  1. +16 −4 manifests/params.pp
View
@@ -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.