2
Licensed under the Apache License, Version 2.0 (the "License"); you may
3
not use this file except in compliance with the License. You may obtain
4
a copy of the License at
6
http://www.apache.org/licenses/LICENSE-2.0
8
Unless required by applicable law or agreed to in writing, software
9
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11
License for the specific language governing permissions and limitations
18
The environment is used to affect the runtime behaviour of the
19
template. It provides a way to override the default resource
20
implementation and the parameters passed to Heat.
25
It is a yaml text file with two main sections "resource_registry" and "parameters".
32
heat stack-create -e my_env.yaml -P "some_parm=bla" -f my_tmpl.yaml
38
1) Pass parameters into Heat
39
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
InstanceType: m1.micro
45
ImageId: F18-x86_64-cfntools
48
2) Deal with the renaming of Quantum to Neutron
49
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53
"OS::Quantum*": "OS::Neutron*"
56
3) Override a resource type with a custom TemplateResource
57
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
"AWS::EC2::Instance": file:///home/mine/my_instance_with_better_defaults.yaml
64
4) Always map resource type X to Y
65
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
"OS::Networking::FloatingIP": "OS::Nova::FloatingIP"
72
5) Use default resources except one for a particular resource in the template
73
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79
"OS::DBInstance": file:///home/mine/all_my_cool_templates/db.yaml