<commit_before>Installation using Devstack
===========================

This section includes instructions for Blazar installation using Devstack.

1. Download Devstack:

.. sourcecode:: console

    git clone https://github.com/openstack-dev/devstack.git

..

2. Configure DevStack to install Blazar by adding the Blazar plugin to your
   local.conf file:

.. sourcecode:: console

    cd devstack
    echo "enable_plugin blazar https://git.openstack.org/openstack/blazar" >> local.conf

..

3. Run Devstack:

.. sourcecode:: console

    ./stack.sh

..

4. Now you can add hosts to Blazar:

.. sourcecode:: console

    climate host-create hostname

..

Installation without Devstack
=============================

This section includes instructions for Blazar installation.

Download all Blazar related repos:

.. sourcecode:: console

   git clone https://github.com/stackforge/blazar.git
   git clone https://github.com/stackforge/blazar-nova.git
   git clone https://github.com/stackforge/python-blazarclient.git

..

Install all these projects to your working environment via:

.. sourcecode:: console
<commit_msg>Add more precise DevStack installation instructions<commit_after>Installation using DevStack
===========================

This section includes instructions for Blazar installation using DevStack.

1. Download DevStack:

.. sourcecode:: console

    git clone https://git.openstack.org/openstack-dev/devstack.git

..

2. Create a local.conf file in the devstack directory. You can use the
   following sample local.conf:

.. sourcecode:: console

    [[local|localrc]]
    ADMIN_PASSWORD=password
    DATABASE_PASSWORD=$<PASSWORD>
    RABBIT_PASSWORD=$ADMIN_PASSWORD
    SERVICE_PASSWORD=$ADMIN_PASSWORD
    DEST=/opt/stack/
    LOGFILE=$DEST/logs/stack.sh.log
    HOST_IP=127.0.0.1
    GIT_BASE=https://git.openstack.org/
    RECLONE=yes
    enable_plugin blazar https://git.openstack.org/openstack/blazar

..

3. Run DevStack as the stack user:

.. sourcecode:: console

    ./stack.sh

..

4. Source the admin credentials:

.. sourcecode:: console

    . openrc admin admin

..

5. Now you can add hosts to Blazar:

.. sourcecode:: console

    climate host-create hostname

..

Installation without DevStack
=============================

This section includes instructions for Blazar installation.

Download all Blazar related repos:

.. sourcecode:: console

   git clone https://github.com/stackforge/blazar.git
   git clone https://github.com/stackforge/blazar-nova.git
   git clone https://github.com/stackforge/python-blazarclient.git

..

Install all these projects to your working environment via:

.. sourcecode:: console

{'fraction_non_alphanumeric': 0.13140060240963855, 'fraction_numerical': 0.005647590361445783, 'mean_word_length': 3.645104895104895, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4542412', 'n_tokens_mistral': 793, 'n_tokens_neox': 764, 'n_words': 226}