senlin/examples/profiles
tengqm 3e08b30cb9 Rework server profile using new context building
Note this is a huge patch.

1) This patch reworks the context building logic for the nova server
   and heat stack profiles. We use a precise dictionary for connection
   setup, which include senlin credential and the trust cached. We don't
   use the huge context dictionary for this purpose.
2) This patch also fixed some cases where 'domain' is missing.
3) Added new exception types that will be used whenever backend objects
   are not found.
4) Revised sample nova spec, because we now support specifying image by
   name in addition to image id.
5) Reworked SDK exception translation module so that it can handle a
   different kind of exception (from Nova). Some 'print' calls are
   removed.
6) Reworked node_create logic so that 'user' and 'project' will be
   recorded when node is created.

Change-Id: If3160a5a8cc930dcebe91172da6a8bf22d20af47
2015-04-20 02:24:05 -04:00
..
README.rst Example spec for creating profile of os.heat.stack type 2015-01-26 22:27:35 +08:00
env.yaml Removed username from environment parameters 2015-02-04 11:15:06 +08:00
heat_stack_random_string.spec add context in example profile 2015-03-16 11:15:18 +08:00
nova_server.spec Rework server profile using new context building 2015-04-20 02:24:05 -04:00
random_string_stack.yaml Fixed errors in sample stack template 2015-01-31 22:35:50 +08:00
test_script.sh Example spec for creating profile of os.heat.stack type 2015-01-26 22:27:35 +08:00

README.rst

How To Use the Sample Spec File

This directory contains a sample spec file that can be used to create a profile of type 'os.heat.stack'. It demonstrates how to use environment files when creating a profile and how to assign default parameters for the stack to use. In addition to that, it shows an example about making use of the 'get_file' function supported by Heat.

To create a profile using the spec, use the following command:

senlin profile-create \
  -t os.heat.stack \
  -s heat_stack_random_string.spec \
  -p 1111
  my_stack

To get help on the command line options for creating profiles:

senlin profile-create

To show the profile created:

senlin profile-show <profile_id>