Files
openstack-ansible/doc/source/reference/conventions.rst
Ivan Anfimov 83b3c38eac docs: fix for issues when switching between pages using localization
Change-Id: Id328ef0f12657ec862dbaa7832a254a02e8a074d
2025-05-09 08:01:08 +00:00

55 lines
1.3 KiB
ReStructuredText

===========
Conventions
===========
To avoid extra configuration, a series of conventions are set into code.
Default folders locations
=========================
Ansible roles
~~~~~~~~~~~~~
The ansible roles are stored under ``/etc/ansible/roles``.
OpenStack-Ansible directory checkout
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The code is generally located into ``/opt/openstack-ansible``.
OpenStack-Ansible wrapper
~~~~~~~~~~~~~~~~~~~~~~~~~
Our ``openstack-ansible`` cli is located in ``/usr/local/bin/openstack-ansible``.
It sources an environment variable file located in:
``/usr/local/bin/openstack-ansible.rc``.
Userspace configurations
~~~~~~~~~~~~~~~~~~~~~~~~
All the userspace configurations are expected to be in
``/etc/openstack_deploy/``.
Ansible configuration
=====================
ansible.cfg
~~~~~~~~~~~
There is no ``ansible.cfg`` provided with OpenStack-Ansible.
Environment variables are used to alter the default
Ansible behavior if necessary.
Ansible roles fetching
~~~~~~~~~~~~~~~~~~~~~~
Any roles defined in ``openstack-ansible/ansible-role-requirements.yml``
will be installed by the
``openstack-ansible/scripts/bootstrap-ansible.sh`` script, and fetched
into the ansible roles folder.
Inventory conventions
~~~~~~~~~~~~~~~~~~~~~
Please refer to the :ref:`inventory` section of this reference.