}
define instance($base_url = false, $ensure = 'present', $description = false,
- $adminuser = 'yourname', $adminemail = 'me@example.org', $instance = 'ikiwiki') {
+ $adminuser = 'yourname', $adminemail = 'me@example.org', $instance = 'ikiwiki',
+ $account_creation_password = false, $add_plugins = false, $disable_plugins = false) {
$desc = $description ? {
false => $title,
# To create output files named page.html rather than page/index.html.
#usedirs => 0,
# Simple spam prevention: require an account-creation password.
- #account_creation_password => "example",
+<%= if account_creation_password != false %> account_creation_password => "<%= account_creation_password %>",<%= end %>
# Cost of generating a password using Authen::Passphrase::BlowfishCrypt
#password_cost => 8,
# Uncomment to force ikiwiki to run with a particular umask.
# To add plugins, list them here.
#add_plugins => [qw{goodstuff search wikitext camelcase
# htmltidy fortune sidebar map rst anonok}],
+<%= if add_plugins != false %> add_plugins => [qw{<%= add_plugins %>}],<%= end %>
# If you want to disable any of the default plugins, list them here.
#disable_plugins => [qw{inline htmlscrubber passwordauth openid}],
- disable_plugins => [qw{openid}],
+<%= if disable_plugins != false %> disable_plugins => [qw{<%= disable_plugins %>}],<%= end %>
# To add a directory to the perl search path, use this.
#libdir => "/home/me/.ikiwiki/",