Files
puppet-dokuwiki/templates/local.protected.php.erb

49 lines
2.3 KiB
Plaintext

<?php
# Managed by puppet
# Local modifications to this file will be lost
$conf['title'] = '<%= @wiki_title %>';
$conf['savedir'] = '<%= @data_dir %>';
$conf['useacl'] = <%= @use_acl ? 1 : 0 %>;
$conf['userewrite'] = <%= @use_rewrite ? 1 : 0 %>;
# Disable use of any standard content licenses, e.g. CC
$conf['license'] = '<%= @content_license %>';
# Override the page lock timer
$conf['locktime'] = <%= @locktime %>; # 30*60
# User interface tweaks
$conf['breadcrumbs'] = <%= @breadcrumbs ? 1 : 0 %>;
$conf['youarehere'] = <%= @youarehere ? 1 : 0 %>;
$conf['updatecheck'] = <%= @updatecheck ? 1 : 0 %>;
# Authentication
$conf['openregister'] = 0;
$conf['authtype'] = '<%= @auth_type %>';
<%- if @auth_type == 'authldap' -%>
$conf['plugin']['authldap']['version'] = '<%= @ldap_version %>';
$conf['plugin']['authldap']['server'] = 'ldap://<%= @ldap_servers.join(" ") %>:389';
$conf['plugin']['authldap']['usertree'] = '<%= @ldap_user_tree %>';
$conf['plugin']['authldap']['userfilter'] = '<%= @ldap_user_filter %>';
$conf['plugin']['authldap']['userscope'] = '<%= @ldap_user_scope %>';
$conf['plugin']['authldap']['grouptree'] = '<%= @ldap_group_tree %>';
$conf['plugin']['authldap']['groupfilter'] = '<%= @ldap_group_filter %>';
$conf['plugin']['authldap']['groupscope'] = '<%= @ldap_group_scope %>';
$conf['plugin']['authldap']['starttls'] = <%= @ldap_starttls ? 1 : 0 %>;
$conf['plugin']['authldap']['sso'] = <%= @ldap_use_sso ? 1 : 0 %>;
$conf['plugin']['authldap']['recursive'] = <%= @ldap_recursive_search ? 1 : 0 %>;
$conf['plugin']['authldap']['binddn'] = '<%= @ldap_binddn %>';
$conf['plugin']['authldap']['bindpw'] = '<%= @ldap_bindpw %>';
$conf['plugin']['authldap']['referrals'] = <%= @use_referrals ? 1 : 0 %>;
$conf['plugin']['authldap']['mapping']['name'] = '<%= @ldap_mapping_name %>';
$conf['plugin']['authldap']['mapping']['grps'] = array();
<%- @ldap_mapping_groups.each do |key, value| -%>
$conf['plugin']['authldap']['mapping']['grps']['<%= key %>'] = '<%= value %>';
<%- end -%>
<%- end -%>
$conf['manager'] = '<%= @manager %>';
$conf['superuser'] = '<%= @superuser %>';