From b1313ab42a83c926cccb724a322285044e02271c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Jan 2013 16:11:13 -0200 Subject: Upgrading for 2.7 compatibility --config --- manifests/init.pp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'manifests/init.pp') 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}" } -- cgit v1.2.3