Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/sitescripts/manifests/init.pp

Issue 29438564: #301 - Provision formmail templates with absolute paths (Closed)
Patch Set: For comments 7 and 8 Created March 7, 2018, 11:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/sitescripts/manifests/formmail.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « modules/sitescripts/manifests/formmail.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld