Difference between revisions of "Heat/Environments"
< Heat
(One intermediate revision 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 | + | 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 | + | # You can define any extra/non-keystone credentials in the Environment |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | Template || Static | + | | 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: | |
− | |||
InstanceType: m1.xlarge | InstanceType: m1.xlarge | ||
DBUsername: angus | DBUsername: angus | ||
DBPassword: verybadpass | DBPassword: verybadpass | ||
KeyName: heat_key | KeyName: heat_key | ||
− | + | credentials: | |
− | + | rackspace_creds: | |
username: myusername | username: myusername | ||
api_key: 012345abcdef67890 | api_key: 012345abcdef67890 | ||
− | + | resources: | |
− | + | provider: rackspace.com | |
DatabaseServer: | DatabaseServer: | ||
− | + | ImageId: this_image_please | |
− | + | credentials: rackspace_creds | |
− | |||
− | |||
− |
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).
- 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 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