stackhpc / p3-config

Configuration of SKA SDP Performance Prototype Platform (P-cubed) infrastructure
Apache License 2.0
4 stars 3 forks source link

============================================================== SKA SDP Performance Prototype Platform (P-cubed) Configuration

This project contains Ansible playbooks and configuration of infrastructure on an existing OpenStack cloud for the SKA SDP <http://ska-sdp.org/>_ Performance Prototype Platform (P-cubed). This includes:

Preparation

Ensure that Ansible is installed, either via the system package manager or pip. If required, use a virtualenv to avoid interference with the system python packages. For example:

.. code-block::

$ python3 -m venv p3-config-venv $ source p3-config-venv/bin/activate $ pip install -U pip $ pip install -r requirements.txt

Install Ansible role dependencies from Ansible Galaxy:

.. code-block::

$ ansible-galaxy install \ -p ansible/roles \ -r ansible/requirements.yml

Usage

First, ensure that OpenStack authentication environment variables are set, typically by sourcing an OpenStack environment file.

To configure OpenStack infrastructure for P-cubed:

.. code-block::

$ tools/p3-config

To run a specific playbook:

.. code-block::

$ tools/p3-config -p </path/to/playbook>

To specify additional arguments to ansible-playbook, separate them with a double hyphen (--):

.. code-block::

$ tools/p3-config --

For example, a vault secret stored as a file can be passed as an extra configuration parameter:

.. code-block::

$ tools/p3-config -- --vault-password-file config-secret.vault