summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-19 16:11:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-19 16:11:13 -0200
commitb1313ab42a83c926cccb724a322285044e02271c (patch)
tree68542bbc0912d11623adf05b5d57ba2692e0f3f7 /manifests/init.pp
parente7a621dbfecc2c04bda844faf4be07e7a3655972 (diff)
downloadpuppet-wordpress-b1313ab42a83c926cccb724a322285044e02271c.tar.gz
puppet-wordpress-b1313ab42a83c926cccb724a322285044e02271c.tar.bz2
Upgrading for 2.7 compatibility --config
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp16
1 files changed, 5 insertions, 11 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index aa24593..a433910 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,15 +1,9 @@
-class wordpress {
+class wordpress(
+ $folder = ${apache::www_folder},
+ $locale = ''
+) {
- case $wordpress_folder {
- '' : {
- case $apache_www_folder {
- '': { fail("you need to define \$apache_www_folder for wordpress module") }
- default: { $wordpress_folder = $apache_www_folder }
- }
- }
- }
-
- $real_wordpress_locale = $wordpress_locale ? {
+ $real_wordpress_locale = $locale ? {
'' => '',
default => "-${wordpress_locale}"
}