Index: modules/sitescripts/manifests/init.pp |
=================================================================== |
--- a/modules/sitescripts/manifests/init.pp |
+++ b/modules/sitescripts/manifests/init.pp |
@@ -1,10 +1,18 @@ |
class sitescripts ( |
+ $directory = {}, |
$sitescriptsini_source = '', |
$sitescriptsini_content = '', |
){ |
ensure_resource('adblockplus::sitescripts::repository', 'sitescripts') |
+ ensure_resource('file', $title, merge({ |
+ 'ensure' => 'directory', |
+ 'path' => '/var/sitescripts', |
+ }, $directory)) |
+ |
+ $directory_path = getparam(File[$title], 'path') |
+ |
@concat {'/etc/sitescripts.ini': |
mode => '644', |
owner => root, |