8.2.15.2.3. Configuration / fichiers utiles

Les fichiers de configuration sont gérés par les procédures d’installation ou de mise à niveau de l’environnement VITAM. Se référer au DIN.

Les fichiers de configuration sont définis sous /vitam/conf/storage-engine.

8.2.15.2.3.1. Fichier driver-location.conf

driverLocation: {{ vitam_folder_lib }}

8.2.15.2.3.2. Fichier driver-mapping.conf

driverMappingPath: {{ vitam_folder_data }}/
delimiter: ;

8.2.15.2.3.3. Fichier static-offer.json

{% if vitam.storageofferdefault.https_enabled==true %}
    {% set protocol = 'https' %}
{% else %}
    {% set protocol = 'http' %}
{% endif %}
[
{% for item in all_used_offers %}
{
{% if item.id is defined %}
    "id" : "{{ item.id }}",
{% else %}
    "id" : "{{ item.name }}.service.{{ item.vitam_site_name | default(vitam_site_name) }}.{{ consul_domain }}",
{% endif %}
    "baseUrl" : "{{ protocol }}://{{ item.name }}.service.{{ item.vitam_site_name | default(vitam_site_name) }}.{{ consul_domain }}:{{ vitam.storageofferdefault.port_service }}",
    {% if item.asyncRead is defined %} "asyncRead": {{item.asyncRead|lower }}, {% endif %}
    "parameters" : {
        {% if vitam.storageofferdefault.https_enabled==true %}
        "keyStore-keyPath": "{{ vitam_folder_conf }}/keystore_storage.p12",
        "keyStore-keyPassword": "{{ keystores.client_storage.storage }}",
        "trustStore-keyPath": "{{ vitam_folder_conf }}/truststore_storage.jks",
        "trustStore-keyPassword": "{{ truststores.client_storage }}"
        {% endif %}
    }
}
{% if not loop.last %},
{% endif %}
{% endfor %}
]

8.2.15.2.3.4. Fichier static-strategy.json

[
    {
        "id" : "default",
        "offers" : [
{% for item in vitam_strategy %}
{% if item.id is defined %}
            {"id" : "{{ item.id }}"{% if item.referent is defined %}{% if item.referent|lower == "true" %}, "referent" : true{% endif %}{% endif %}{% if item.status is defined %}, "status" : "{{ item.status| upper }}" {% endif %}}{% if not loop.last %},{% endif %}
{% else %}
            {"id" : "{{ item.name }}.service.{{ item.vitam_site_name |default(vitam_site_name) }}.{{ consul_domain }}"{% if item.referent is defined %}{% if item.referent|lower == "true" %}, "referent" : true{% endif %}{% endif %}{% if item.status is defined %}, "status" : "{{ item.status| upper }}" {% endif %}}{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
        ]
    }
    {% if other_strategies is defined %}
    {% for strategy_name, strategy_offers in other_strategies.items() %}
    ,
    {
        "id" : "{{ strategy_name }}",
        "offers" : [
            {% for strategy_offer in strategy_offers %}
            {"id" : "{{ strategy_offer.name }}.service.{{ strategy_offer.vitam_site_name |default(vitam_site_name) }}.{{ consul_domain }}"{% if strategy_offer.referent is defined %}{% if strategy_offer.referent|lower == "true" %}, "referent" : true{% endif %}{% endif %}{% if strategy_offer.status is defined %}, "status" : "{{ strategy_offer.status| upper }}" {% endif %}}{% if not loop.last %},{% endif %}
            {% endfor %}
        ]
    }
    {% endfor %}
    {% endif %}

]

8.2.15.2.3.5. Fichier storage-engine.conf

urlWorkspace: {{ vitam.workspace | client_url }}
timeoutMsPerKB: {{ vitam.storageengine.timeoutMsPerKB }}
minWriteTimeoutMs: {{ vitam.storageengine.minWriteTimeoutMs }}
minBulkWriteTimeoutMsPerObject: {{ vitam.storageengine.minBulkWriteTimeoutMsPerObject }}
jettyConfig: jetty-config.xml
zippingDirecorty: {{ vitam_folder_data }}/storage_archives
loggingDirectory: {{ vitam_folder_log }}
p12LogbookPassword: {{ keystores.timestamping.secure_storage }}
p12LogbookFile: keystore_{{ vitam_timestamp_usage }}.p12
storageTraceabilityOverlapDelay: {{ vitam.storageengine.storageTraceabilityOverlapDelay }}
restoreBulkSize: {{ vitam.storageengine.restoreBulkSize }}
offerSynchronizationBulkSize: {{ vitam.storageengine.offerSynchronizationBulkSize }}
offerSyncThreadPoolSize: {{ vitam.storageengine.offerSyncThreadPoolSize }}
offerSyncNumberOfRetries: {{ vitam.storageengine.offerSyncNumberOfRetries }}
offerSyncFirstAttemptWaitingTime: {{ vitam.storageengine.offerSyncFirstAttemptWaitingTime }}
offerSyncWaitingTime: {{ vitam.storageengine.offerSyncWaitingTime }}
storageLogBackupThreadPoolSize: {{ vitam.storageengine.storageLogBackupThreadPoolSize }}
storageLogTraceabilityThreadPoolSize: {{ vitam.storageengine.storageLogTraceabilityThreadPoolSize }}
#Basic Authentication
adminBasicAuth:
- userName: {{ admin_basic_auth_user }}
  password: {{ admin_basic_auth_password }}