Set the jackrabbit cluster node ID.

This commit is contained in:
Andrea Dell'Amico 2017-07-26 17:44:45 +02:00
parent ed19ccf2bd
commit d0b8b42a93
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ jackrabbit_cluster_db_user: 'ws-db-journal-user'
# jackrabbit_cluster_db_password: ''
jackrabbit_cluster_db_url: 'jdbc:{{ jackrabbit_cluster_db_type }}://{{ jackrabbit_cluster_db_host }}/{{ jackrabbit_cluster_db_name }}'
jackrabbit_cluster_db_tableprefix: 'journal_'
jackrabbit_cluster_node_id: '{{ ansible_fqdn }}'
# Set it to true if we want to clean the journal daily
jackrabbit_cluster_janitor_enabled: 'false'

View File

@ -95,7 +95,7 @@
</PersistenceManager>
</Versioning>
<!-- Cluster configuration -->
<Cluster id="node1" syncDelay="2000">
<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 }}" />