Tutorial doc code is out of date

Following the doc in senlin, some code is out of date.
Code changed frequently, but doc not, for better tutorial
we should modify the code in doc.

Change-Id: Ibfe78afc8c5a8a227141584733ab80f00f908c77
closes-bug:#1606817
This commit is contained in:
guoshan 2016-07-28 16:24:24 +08:00
parent 0c9663846f
commit c7bde3aa0e
2 changed files with 8 additions and 8 deletions

View File

@ -96,7 +96,7 @@ that describes the names and the types of properties that can be accepted. To
show the schema of a specific profile type along with other properties, you
can use the following command::
$ openstack cluster profile type show os.heat.stack
$ openstack cluster profile type show os.heat.stack-1.0
name: os.heat.stack
schema:
context:
@ -135,7 +135,7 @@ The default output from the :command:`openstack cluster profile type show`
command is in YAML format. You can choose to show the spec schema in JSON
format by specifying the :option:`-f json` option as exemplified below::
$ openstack cluster profile type show -f json os.heat.stack
$ openstack cluster profile type show -f json os.heat.stack-1.0
{
"name": "os.heat.stack",
"schema": {

View File

@ -116,7 +116,8 @@ Before working with a :term:`Cluster` or a :term:`Node`, you will need a
:term:`Profile` object created with a profile type. To create a profile, you
will need a "spec" file in YAML format. For example, below is a simple spec
for the ``os.heat.stack`` profile type (the source can be found in the
:file:`examples/profiles/heat_stack_random_string.yaml` file).
:file:`/examples/profiles/heat_stack/random_string/
heat_stack_random_string.yaml` file).
::
@ -125,17 +126,16 @@ for the ``os.heat.stack`` profile type (the source can be found in the
properties:
name: random_string_stack
template: random_string_stack.yaml
environment:
- env.yaml
context:
region_name: RegionOne
The ``random_string_stack.yaml`` is the name of a Heat template file to be used
for stack creation. The ``env.yaml`` is the name of an environment file to be
passed to Heat for processing. It is given here only as an example. You can
for stack creation. It is given here only as an example. You can
decide which properties to use based on your requirements.
Now you can create a profile using the following command::
$ cd /opt/stack/senlin/examples/profiles
$ cd /opt/stack/senlin/examples/profiles/heat_stack/random_string
$ openstack cluster profile create \
--spec heat_stack_random_string.yaml \
my_stack