aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/instance.pp1
-rw-r--r--templates/ikiwiki.setup.erb2
2 files changed, 2 insertions, 1 deletions
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') %>",