]> gitweb.fluxo.info Git - puppet-pmwiki.git/commitdiff
Upgrading for 2.7 compatibility --config
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Jan 2013 18:06:17 +0000 (16:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Jan 2013 18:06:17 +0000 (16:06 -0200)
manifests/init.pp
templates/pmwiki.sh.erb

index eec5e96799dac41dbba8e6c55e10783fb8c64cda..a402e9e40780e9c6f9e2373598c736b0434447dc 100644 (file)
@@ -1,8 +1,6 @@
-class pmwiki {
-
-  case $apache_www_folder {
-    '': { fail("you need to define \$apache_www_folder for pmwiki module") }
-  }
+class pmwiki(
+  $www_folder = ${apache_www_folder}
+) {
 
   file { "/usr/local/sbin/pmwiki":
     ensure  => present,
index 4b1e9dc2c081198c38c42fc441559fea46cb4bf3..204916eade4c5de068863f9bf83fca84de8cfa22 100644 (file)
@@ -3,7 +3,7 @@
 # pmwiki management script.
 #
 
-BASE="<%= apache_www_folder %>"
+BASE="<%= scope.lookupvar('pmwiki::www_folder') %>"
 
 # Check for existing installations
 function pmwiki_check_existing {