class wordpress { 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 ? { '' => '', default => "-${wordpress_locale}" } file { "/usr/local/sbin/wordpress": ensure => present, content => template('wordpress/wordpress.sh.erb'), owner => root, group => root, mode => 755, } }