Merge "[DOCS] Move example playbook to separate file"

This commit is contained in:
Jenkins 2016-08-15 11:17:23 +00:00 committed by Gerrit Code Review
commit aa309fabfd
3 changed files with 42 additions and 34 deletions

View File

@ -1,35 +1,9 @@
OpenStack-Ansible Galera Server
###############################
===============================
OpenStack-Ansible Galera server
===============================
Ansible role to install and configure a Galera cluster powered by MariaDB
Default Variables
=================
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required Variables
==================
To use this role, define the following variables:
.. code-block:: yaml
galera_root_password: secrete
Example Playbook
================
.. code-block:: yaml
- name: Install galera server
hosts: galera_all
user: root
roles:
- { role: "galera_server" }
vars:
galera_root_password: secrete
Documentation for the project can be found at:
http://docs.openstack.org/developer/openstack-ansible-galera_server
The project home is at:
http://launchpad.net/openstack-ansible

View File

@ -1 +1,28 @@
.. include:: ../../README.rst
===============================
OpenStack-Ansible Galera server
===============================
Ansible role to install and configure a Galera cluster powered by MariaDB
Default variables
~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required variables
~~~~~~~~~~~~~~~~~~
To use this role, define the following variables:
.. code-block:: yaml
galera_root_password: secrete
Example playbook
~~~~~~~~~~~~~~~~
.. literalinclude:: ../../examples/playbook.yml
:language: yaml

7
examples/playbook.yml Normal file
View File

@ -0,0 +1,7 @@
- name: Install Galera server
hosts: galera_all
user: root
roles:
- { role: "galera_server" }
vars:
galera_root_password: secrete