<commit_before>**XNAT puppet module**
==================
This module deploys and configures an XNAT installation using Puppet.

Installation
---------------

See the `INSTALL <INSTALL.md>`_ file for the prerequisites before using the puppet script. See Installation Configuration below for important settings.

The puppet script installs several services and packages. The install locations vary per package. We provide the following table with the exact details per package that can be used in case of errors, later updates or partial installs/repairs. For repairing or updating a system, the puppet script can be ru-run, even the puppet script is not changed. It uses the checks that are listed in the Check column to determine if a package is already installed. If one makes the check condition false (e.g. removing the listed directory), the puppet script will re-install that specific package. Beside the checks, the puppet script will -always- copy the latest XNAT build to the tomcat webapps directory and restart the service.

The puppet column lists if the package is installed as a puppet module or custom installation (e.g. download and install zip/tar.gz).


======   ==========   ==========================  ============================
Puppet   Package      Install location            Check
======   ==========   ==========================  ============================
No       java         /usr/lib/jvm/{version}      If install location exists
Yes      postgresql   via package manager         Determined by puppet package
No       tomcat       /usr/share/tomcat{version}  If install location exists
No       xnat         /home/xnat/xnat             If install location exists
Yes      nginx        via package manager         Determined by puppet package
======   ==========   ==========================  ============================

*Other checks*

============================   =========================================
Item                            Check
============================   =========================================
Install database               If database 'xnat' exists (see notes)
Build XNAT                     If {xnat}/deployments directory exists<commit_msg>fix: Update list of packages installed through Puppet<commit_after>**XNAT puppet module**
==================
This module deploys and configures an XNAT installation using Puppet.

Installation
---------------

See the `INSTALL <INSTALL.md>`_ file for the prerequisites before using the puppet script. See Installation Configuration below for important settings.

The puppet script installs several services and packages. The install locations vary per package. We provide the following table with the exact details per package that can be used in case of errors, later updates or partial installs/repairs. For repairing or updating a system, the puppet script can be ru-run, even the puppet script is not changed. It uses the checks that are listed in the Check column to determine if a package is already installed. If one makes the check condition false (e.g. removing the listed directory), the puppet script will re-install that specific package. Beside the checks, the puppet script will -always- copy the latest XNAT build to the tomcat webapps directory and restart the service.

The puppet column lists if the package is installed as a puppet module or custom installation (e.g. download and install zip/tar.gz).


======   ==========   ==========================  ============================
Puppet   Package      Install location            Check
======   ==========   ==========================  ============================
Yes      java         via package manager         Determined by puppet package
Yes      postgresql   via package manager         Determined by puppet package
Yes      tomcat       via package manager         Determined by puppet package
No       xnat         /home/xnat/xnat             If install location exists
Yes      nginx        via package manager         Determined by puppet package
======   ==========   ==========================  ============================

*Other checks*

============================   =========================================
Item                            Check
============================   =========================================
Install database               If database 'xnat' exists (see notes)
Build XNAT                     If {xnat}/deployments directory exists
{'fraction_non_alphanumeric': 0.1985624438454627, 'fraction_numerical': 0.0, 'mean_word_length': 3.395853899308983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2578014', 'n_tokens_mistral': 991, 'n_tokens_neox': 872, 'n_words': 480}