<commit_before># Playbooks description

## Bootstrap (`bootstrap.yml`)

The bootstrap playbook is used to prepare a machine to be managed by Ansible.
Namely, it will :
 - Create a regular user account (named `redhat`)
 - Add your SSH Public Key to the `authorized_keys` of `root` and `redhat`
 - Install and configure `sudo` so that the `redhat` user can launch commands as `root` without password
 - Register the machine on the RHN (Red Hat Network)

To work, this playbook will require a few environment variables :

| Environment Variable | Description |
| --- | --- |
| RHN_LOGIN | Your Red Hat Network login |
| RHN_PASSWORD | Your Red Hat Network password |
| RHN_POOLID | The subscription pool you want to use |

__Tip :__ You can get the PoolID by querying :
```
sudo subscription-manager list --available --matches '*OpenShift*'
```

This playbook is best used with the [Ansible Wrapper](ANSIBLE_WRAPPER.md).

## All-in-one cluster (`allinone.yml`)

The All-in-one cluster playbook will deploy everyting on one machine. It is very
convenient for development or PoC where the focus is on the features rather than on the infrastructure.

Minimal requirements for the target machine are :
 - 2 Cores
 - 4 GB of RAM
 - 30 GB Hard Disk, partitioned as explained in the [Machine Preparation Guide](MACHINE_PREPARATION.md)

Recommended config :
 - 4 Cores
 - 10 GB of RAM
 - 60 GB Hard Disk, partitioned as explained in the [Machine Preparation Guide](MACHINE_PREPARATION.md)

See [Machine Preparation Guide](MACHINE_PREPARATION.md) for more details about partitioning.

## Small cluster (TODO)

TODO

## Big cluster (TODO)

TODO<commit_msg>improve doc<commit_after># Playbooks description

## Bootstrap (`bootstrap.yml`)

The bootstrap playbook is used to prepare a machine to be managed by Ansible.
Namely, it will :
 - Create a regular user account (named `redhat`)
 - Add your SSH Public Key to the `authorized_keys` of `root` and `redhat`
 - Install and configure `sudo` so that the `redhat` user can launch commands as `root` without password
 - Register the machine on the RHN (Red Hat Network)

To work, this playbook will require a few environment variables :

| Environment Variable | Description |
| --- | --- |
| RHN_LOGIN | Your Red Hat Network login |
| RHN_PASSWORD | <PASSWORD> |
| RHN_POOLID | The subscription pool you want to use |

__Tip :__ You can get the PoolID by querying :
```
sudo subscription-manager list --available --matches '*OpenShift*'
```

This playbook is best used with the [Ansible Wrapper](ANSIBLE_WRAPPER.md).

## All-in-one cluster (`allinone.yml`)

The All-in-one cluster playbook will deploy everything on one machine. It is very
convenient for development or PoC where the focus is on the features rather than on the infrastructure.

Minimal requirements for the target machine are :
 - 2 Cores
 - 4 GB of RAM
 - Hard Disk partitioned as explained in the [Machine Preparation Guide](MACHINE_PREPARATION.md)

Recommended config :
 - 4 Cores
 - 10 GB of RAM
 - Hard Disk partitioned as explained in the [Machine Preparation Guide](MACHINE_PREPARATION.md)

See [Machine Preparation Guide](MACHINE_PREPARATION.md) for more details about partitioning.

## Small cluster (TODO)

TODO

## Big cluster (TODO)

TODO
{'fraction_non_alphanumeric': 0.07933579335793357, 'fraction_numerical': 0.004305043050430504, 'mean_word_length': 4.196485623003195, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3660184', 'n_tokens_mistral': 996, 'n_tokens_neox': 917, 'n_words': 426}