This is the result of running:
python tools/cfn-json2yaml templates/
and then cleaning up by hand to be more consistant, readable and
maintainable.
The following templates are enforced to parse to identical stacks
in the unit tests so any fundamental change to one must be made
to the other.
Quantum.template
Quantum.yaml
WordPress_Single_Instance.template
WordPress_Single_Instance.yaml
Change-Id: Ibe05a5c5a7a5bb1861c5f84a3dc41e2d632852fd
The description doesn't match the actual values for the alarms
Change-Id: I46201b75be075f4e4ac32d40031bc17b0786bb1f
Signed-off-by: Steven Hardy <shardy@redhat.com>
Create boto config via instance userdata, which the instance
cfntools can read instead of /etc/boto.cfg, avoids messy post
install sed-mangling in the templates
Change-Id: Ic94bfc2e362a3a3f93b9bdeaad6a5f988371346e
Signed-off-by: Steven Hardy <shardy@redhat.com>
The properties schemas map directly to the Quantum REST API, which makes
the implementation (and documentation) simpler.
The base class QuantumResource contains some default methods and
common utility functions.
templates/Quantum.template can be run without any parameters and only creates
network resources, no instances.
More example templates and tests will come later.
Change-Id: Ia270294440eeec5163e35009f6be0b5db9ad78c1
Updated cfntools require authentication for cfn-push-stats,
so the AutoScaling template needs the user/key and boto.cfg
additions, same as in the HA templates, otherwise cfn-push-stats,
and hence autoscaling doesn't work
Change-Id: Ib3ef4a932bb656f29e25ef745409f5fe3e82c356
Signed-off-by: Steven Hardy <shardy@redhat.com>
Provisioning scripts should never expect user input.
Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Add boto config to HA/IHA templates as it's now required for
authenticated cfn-push-stats which uses the CloudWatch API
Signed-off-by: Steven Hardy <shardy@redhat.com>
Change-Id: I8670f6774834e9f41870240496fe74728306cf17
Add LinuxDistribution section and mappings to HAProxy template,
to align with other templates and for compatibility with functional
test infrastructure
Change-Id: Ib86ac4f587aebf712df1c9ad09cebc44f853e114
Signed-off-by: Steven Hardy <shardy@redhat.com>
An attempt was made to make created bucket names readable and unique.
Names are of the format heat-<resource name>-<random hex>. eg:
heat-S3Bucket-b420d12d02e5d6e46f13
Only the swift v2 auth is currently supported, which means swift will need to
use keystone for auth. This may be a valid assumption for any environment that
is running Heat.
When DeletionPolicy is Delete then an attempt is made to delete the container,
but the stack will still be deleted if container delete fails.
Run the template S3_Single_Instance.template to give it a try.
Functional tests will be coming in a later change.
Change-Id: Ifa2c3c4fcbdb00a44f8c6b347a61f8e1735e8328
I had this in and tested but forgot to put commas in after update.
Change-Id: I7fbcacea0a4ab40f1e6b6e016fd5940ba8432c26
Signed-off-by: Ian Main <imain@redhat.com>
Single instance with EBS apparently needs an httpd restart in order to
keep talking to mysql after we change the partition. Also change other
EBS templates to use vdc.
Change-Id: I180cca2166a0210d5d8dd3e0aea111ea625b865a
Signed-off-by: Ian Main <imain@redhat.com>
Fix Single_Instance_With_EBS templates, need the EBS
disk to attach to vdc not vdb which is used for the
ephemeral disk (fix from imain)
Fixes #185
Change-Id: I47d1b640d25c0f53dd4535e4bd73846d01f4fc86
Signed-off-by: Steven Hardy <shardy@redhat.com>
Add default value to LinuxDistribution template parameter
for MySQL_Single_Instance.template
Change-Id: I6431b717dee700f9db588ddbaf58511d0a3b107c
Signed-off-by: Steven Hardy <shardy@redhat.com>
Align the build-from-scratch Openshift.template with the
now-working OpenShift_Prebuilt_JEOS.template
Change-Id: I8d164b0837b4cb28a6ce4ad1573b19f8daf68b8a
Signed-off-by: Steven Hardy <shardy@redhat.com>
Add new openshift template which uses a pre-built JEOS
also creates the example application allowing a fairly
quick full demo of a two-instance openshift setup
Fixes #186
Change-Id: I9bd886b0717c8b0d810eff036b76883b537c2421
Signed-off-by: Steven Hardy <shardy@redhat.com>
Added a patch to force yum to retry indefinately on crankcase builds
because the OpenShift repositories were too busy. I submitted this upstream
in:
https://github.com/openshift/crankcase/pull/336
and it was merged.
As a result, removing this workaround.
Change-Id: I26e0a162d5cfb4bc23843c93678318ff21610973
Signed-off-by: Steven Dake <sdake@redhat.com>
If RPM is not forced, sometimes packages will fail to download within the
default 10 retries. This results in crankcase failing to build OpenShift.
Change-Id: I5174928fc2ac205dcd7818ecf1da6b8e32f48e08
Signed-off-by: Steven Dake <sdake@redhat.com>
Update openshift templat to add a second instance running
the node to the existing broker. Move to crankcase master
and attempt to work around build issues.
Ref #186
Change-Id: If7d1b39e1072d3934f37817be3d7773edd7785c3
Signed-off-by: Steven Hardy <shardy@redhat.com>
We use cfn-push-stats to send a heartbeat and if we don't get
it within the set interval we restart the instance.
Other changes to make this work:
- clear the waitcondition when it is deleted.
- set the resource id to None when deleted, else it won't re-create
properly.
- don't run watch alarms if the stack is not completed.
Change-Id: I5dfc8b372f557cf43379c6c5b7436d1010f83e3c
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Fixes #163
This is an initial implementation of the DBInstance resource type and a
sample Wordpress template showing it off.
Change-Id: I5e156dc58eee563ae9de068664bafa1af1fb5ffe
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
The template was not valid JSON due to an apparent copy-and-paste error.
Change-Id: I5fb4afe6597b2f469fb5219494feb745d083bf52
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This is mainly for ppetit so he can create multiple
resources with one stack.
Use like this:
heat create lots -f ./templates/ppetit.template --parameters="KeyName=${USER}_key;NumInstances=2"
Change-Id: Ie609a1843c855953d65183a8f2d8ed49254a265f
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This is based off of http://www.krishnaraman.net/openshift-origin-on-openstack/
This is the broker, the node is TODO (but simpler).
Change-Id: I5d500a460e43de1172aa7636d9b94f590a979d97
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Some initial simplifications:
- only one Listener
- static (only use Instances)
- only http (no tcp or ssl)
Ref #164
Change-Id: Iaac06eff83a5c43049adc95a98ebe632e17b490c
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Align README with latest templates and cleanup some whitespace issues
ref #147
Change-Id: Iad39c388806bba6497f8abf0de46c04ef7ac7e69
Signed-off-by: Steven Hardy <shardy@redhat.com>