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: New approach based on previous comments Created March 7, 2018, 3:57 a.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
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,
« modules/sitescripts/manifests/formmail.pp ('K') | « modules/sitescripts/manifests/formmail.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld