ansible-roles/smartgears/storage_hub/templates/repository.xml.j2

111 lines
7.0 KiB
Django/Jinja

<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for additional
information regarding copyright ownership. The ASF licenses this file to
You under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of
the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License. -->
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<!-- virtual file system where the repository stores global state (e.g.
registered namespaces, custom node types, etc.) -->
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="{{ jackrabbit_virt_fs_db_driver }}" />
<param name="schema" value="{{ jackrabbit_virt_fs_db_schema }}" />
<param name="url" value="{{ jackrabbit_virt_fs_db_url }}" />
<param name="user" value="{{ jackrabbit_virt_fs_db_user }}" />
<param name="password" value="{{ jackrabbit_virt_fs_db_password }}" />
<param name="schemaObjectPrefix" value="rep_" />
</FileSystem>
<!-- data store configuration -->
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
<param name="driver" value="{{ jackrabbit_data_store_db_driver }}" />
<param name="databaseType" value="{{ jackrabbit_data_store_db_type }}" />
<param name="url" value="{{ jackrabbit_data_store_db_url }}" />
<param name="user" value="{{ jackrabbit_data_store_db_user }}" />
<param name="password" value="{{ jackrabbit_data_store_db_password }}" />
<param name="minRecordLength" value="1024" />
<param name="maxConnections" value="3" />
<param name="copyWhenReading" value="true" />
<param name="tablePrefix" value="{{ jackrabbit_data_store_db_tableprefix }}" />
<param name="schemaObjectPrefix" value="" />
</DataStore>
<!-- security configuration -->
<Security appName="Jackrabbit">
<SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" />
<AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager" />
<LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
<param name="adminId" value="{{ jackrabbit_security_adminid }}" />
<param name="adminPassword" value="{{ jackrabbit_security_admin_pwd }}" />
</LoginModule>
</Security>
<!-- location of workspaces root directory and name of default workspace -->
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="{{ jackrabbit_ws_default_workspace }}" />
<Workspace name="${wsp.name}">
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${wsp.home}" />
</FileSystem>
<PersistenceManager class="{{ jackrabbit_ws_persistence_manager }}">
<param name="driver" value="{{ jackrabbit_ws_persistence_manager_db_driver }}" />
<param name="url" value="{{ jackrabbit_ws_persistence_manager_db_url }}" />
<param name="schema" value="{{ jackrabbit_ws_persistence_manager_db_schema }}" />
<param name="user" value="{{ jackrabbit_ws_persistence_manager_db_user }}" />
<param name="password" value="{{ jackrabbit_ws_persistence_manager_db_password }}" />
<param name="schemaObjectPrefix" value="{{ jackrabbit_ws_persistence_manager_db_tableprefix }}" />
<param name="bundleCacheSize" value="600" />
<param name="errorHandling" value="IGNORE_MISSING_BLOBS" />
<param name="consistencyFix" value="false" />
<param name="consistencyCheck" value="false" />
</PersistenceManager>
<!-- Search index and the file system it uses. class: FQN of class implementing
the QueryHandler interface -->
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index" />
<param name="supportHighlighting" value="true" />
<param name="autoRepair" value="true" />
<param name="onWorkspaceInconsistency" value="log" />
<param name="indexingConfiguration" value="${rep.home}/indexing_configuration.xml" />
<param name="resultFetchSize" value="50" />
<param name="cacheSize" value="100000" />
<param name="enableConsistencyCheck" value="false" />
<param name="forceConsistencyCheck" value="false" />
</SearchIndex>
</Workspace>
<!-- Configures the versioning -->
<Versioning rootPath="${rep.home}/version">
<!-- Configures the filesystem to use for versioning for the respective
persistence manager -->
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/version" />
</FileSystem>
<PersistenceManager class="{{ jackrabbit_ver_persistence_manager }}">
<param name="driver" value="{{ jackrabbit_ver_persistence_manager_db_driver }}" />
<param name="url" value="{{ jackrabbit_ver_persistence_manager_db_url }}" />
<param name="schema" value="{{ jackrabbit_ver_persistence_manager_db_schema }}" />
<param name="user" value="{{ jackrabbit_ver_persistence_manager_db_user }}" />
<param name="password" value="{{ jackrabbit_ver_persistence_manager_db_password }}" />
<param name="schemaObjectPrefix" value="{{ jackrabbit_ver_persistence_manager_db_tableprefix }}" />
<param name="bundleCacheSize" value="600" />
<param name="consistencyFix" value="false" />
<param name="consistencyCheck" value="false" />
</PersistenceManager>
</Versioning>
<!-- Cluster configuration -->
<Cluster id="{{ jackrabbit_cluster_node_id }}" syncDelay="2000">
<Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
<param name="driver" value="{{ jackrabbit_cluster_db_driver }}" />
<param name="url" value="{{ jackrabbit_cluster_db_url }}" />
<param name="databaseType" value="{{ jackrabbit_cluster_db_type }}" />
<param name="schemaObjectPrefix" value="{{ jackrabbit_cluster_db_tableprefix }}" />
<param name="user" value="{{ jackrabbit_cluster_db_user }}" />
<param name="password" value="{{ jackrabbit_cluster_db_password }}" />
<param name="revision" value="${rep.home}/revision.log" />
<param name="janitorEnabled" value="{{ jackrabbit_cluster_janitor_enabled }}"/> <!-- set to true if you want to daily clean the journal table https://wiki.apache.org/jackrabbit/Clustering#Removing_Old_Revisions -->
</Journal>
</Cluster>
</Repository>