From 8d3ecbe7ff593656cd1de54c797dbc5c0d988a78 Mon Sep 17 00:00:00 2001 From: Trevor McKay Date: Wed, 8 Apr 2015 13:06:31 -0400 Subject: [PATCH] Add a brief description of the default template mechanism Change-Id: I6455442404c8d9074c8b4cd30b4624d0dde05514 --- doc/source/userdoc/installation.guide.rst | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/doc/source/userdoc/installation.guide.rst b/doc/source/userdoc/installation.guide.rst index 09cda43a..5ed3b9ab 100644 --- a/doc/source/userdoc/installation.guide.rst +++ b/doc/source/userdoc/installation.guide.rst @@ -194,6 +194,56 @@ installations of sahara. 5. For more information on configuring sahara with the OpenStack Dashboard please see :doc:`dashboard.guide`. +Optional installation of default templates +------------------------------------------ + +Sahara bundles default templates that define simple clusters for the +supported plugins. These templates may optionally be added to the +Sahara database using a simple CLI included with Sahara. + +The default template CLI is described in detail in a *README* file +included with the Sahara sources at ``/db/templates/README.rst`` +but it is summarized here. + +Flavor id values must be specified for the default templates included +with Sahara. The recommended configuration values below correspond to the +*m1.medium* and *m1.large* flavors in a default OpenStack installation (if +these flavors have been edited, their corresponding values will be different). +Values for flavor_id should be added to ``/etc/sahara/sahara.conf`` or another +configuration file in the sections shown here: + +.. sourcecode:: ini + + [DEFAULT] + # Use m1.medium for {flavor_id} unless specified in another section + flavor_id = 2 + + [cdh-5-default-namenode] + # Use m1.large for {flavor_id} in the cdh-5-default-namenode template + flavor_id = 4 + + [cdh-530-default-namenode] + # Use m1.large for {flavor_id} in the cdh-530-default-namenode template + flavor_id = 4 + +The above configuration values are included in a sample configuration +file at ``/plugins/default_templates/template.conf`` + +The command to install all of the default templates is as follows, where +``$TENANT_ID`` should be a valid tenant id and the above configuration values +have been set in ``myconfig``: + +.. sourcecode:: console + + $ sahara-templates --config-file /etc/sahara/sahara.conf --config-file myconfig update -t $TENANT_ID + +Help is available from the ``sahara-templates`` command: + +.. sourcecode:: console + + $ sahara-templates --help + $ sahara-templates update --help + Notes: ------