Jump to: navigation, search

Difference between revisions of "Heat/Environments"

(Created page with "== What is an Environment? == I see an Environment as a container for anything that affects the behaviour of the Template. # So parameters can be written into an environment...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== What is an Environment? ==
 
== What is an Environment? ==
  
I see an Environment as a container for anything that affects the behaviour of the Template.
+
I see an Environment as a container for anything that affects the behavior of the Template (kinda like structured parameters).
 
#  So parameters can be written into an environment file or automatically inserted if you pass them on the cli.
 
#  So parameters can be written into an environment file or automatically inserted if you pass them on the cli.
 
# You define any non-default Providers in the Environment  
 
# You define any non-default Providers in the Environment  
# You can define any extra/non-keystone credetials in the Environment
+
# You can define any extra/non-keystone credentials in the Environment
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| Template || Static archetectural design of your application
+
| Template || Static architectural design of your application
 
|-
 
|-
 
| Environment || Specific details that affect the instantiation of the Template
 
| Environment || Specific details that affect the instantiation of the Template
Line 17: Line 17:
 
'''Example'''
 
'''Example'''
  
   Parameters:
+
   parameters:
 
     InstanceType: m1.xlarge
 
     InstanceType: m1.xlarge
 
     DBUsername: angus
 
     DBUsername: angus
 
     DBPassword: verybadpass
 
     DBPassword: verybadpass
 
     KeyName: heat_key
 
     KeyName: heat_key
   Credentials:
+
   credentials:
     rax_angus:
+
     rackspace_creds:
 
         username: myusername
 
         username: myusername
 
         api_key: 012345abcdef67890
 
         api_key: 012345abcdef67890
   Resources:
+
   resources:
 +
    provider: rackspace.com
 
     DatabaseServer:
 
     DatabaseServer:
         Provider: RACKSPACE
+
         ImageId: this_image_please
         Credentials: rax_angus
+
         credentials: rackspace_creds
    WebServer:
 
        Provider: RACKSPACE
 
        Credentials: rax_angus
 

Latest revision as of 23:21, 29 May 2013

What is an Environment?

I see an Environment as a container for anything that affects the behavior of the Template (kinda like structured parameters).

  1. So parameters can be written into an environment file or automatically inserted if you pass them on the cli.
  2. You define any non-default Providers in the Environment
  3. You can define any extra/non-keystone credentials in the Environment
Template Static architectural design of your application
Environment Specific details that affect the instantiation of the Template
Stack Template + Environment

Example

 parameters:
   InstanceType: m1.xlarge
   DBUsername: angus
   DBPassword: verybadpass
   KeyName: heat_key
 credentials:
   rackspace_creds:
       username: myusername
       api_key: 012345abcdef67890
 resources:
   provider: rackspace.com
   DatabaseServer:
       ImageId: this_image_please
       credentials: rackspace_creds