From 6872c12233cda9e6e58dceedbb118ea30c655c63 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 3 Oct 2013 14:09:18 -0300 Subject: Adding cgi parameter to ikiwiki::instance --- manifests/instance.pp | 1 + templates/ikiwiki.setup.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index ac44fb2..a059465 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -10,6 +10,7 @@ define ikiwiki::instance( $protocol = 'https', $owner = $name, $group = $name, + $cgi = '1', ) { case $ensure { 'present': { diff --git a/templates/ikiwiki.setup.erb b/templates/ikiwiki.setup.erb index 986eb3a..75ceb49 100644 --- a/templates/ikiwiki.setup.erb +++ b/templates/ikiwiki.setup.erb @@ -62,7 +62,7 @@ use IkiWiki::Setup::Standard { wrappers => [ { # The cgi wrapper. - cgi => 1, + cgi => <%= cgi %>, wrapper => "<%= scope.lookupvar('ikiwiki::sites_folder') %>/<%= name %>/ikiwiki/ikiwiki.cgi", wrappermode => "06550", wrappergroup => "<%= scope.lookupvar('ikiwiki::www_user') %>", -- cgit v1.2.3