Skip to content

Instantly share code, notes, and snippets.

View rs-randallburt's full-sized avatar

Randall Burt rs-randallburt

View GitHub Profile
@rs-randallburt
rs-randallburt / testasguserdata.yaml
Created November 14, 2014 17:48
Example for Jason
heat_template_version: 2013-05-23
description: |
Test template using all resources supported on the Rackspace Public Cloud
resources:
aws_server:
type: AWS::EC2::Instance
properties:
@rs-randallburt
rs-randallburt / gist:6012147
Created July 16, 2013 20:02
delete nested instance bug
Failed to delete TemplateResource "wp2" error: IntegrityError: (IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (`heat`.`resource_data`, CONSTRAINT `resource_data_ibfk_1` FOREIGN KEY (`resource_id`) REFERENCES `resource` (`id`))') 'UPDATE resource_data SET updated_at=%s, resource_id=%s WHERE resource_data.id = %s' (datetime.datetime(2013, 7, 16, 19, 56, 50, 570088), None, 3L)
@rs-randallburt
rs-randallburt / gist:5961492
Created July 9, 2013 21:35
Add gerrit dependency to your change.
git fetch --all # Make sure we have latest info from the repository
git review -d 1234 # Gerrit change number of the change you want as dependency ("parent")
git branch # Take note of the review/* branch that was created for this, it has an "*" in front of it
git checkout bug/1234 # Check out the local topic branch of your change
git rebase review/john/7000 # The branch name of the gerrit change we checked out earlier
# Resolve conflicts if needed,
git log -n5 --decorate --pretty=oneline # Verify that the last 5 entries of the log now start with:
# * (HEAD, bug/1234) your change
HeatTemplateFormatVersion: '2012-12-12'
Description: AWS CloudFormation Sample Template
Parameters:
KeyName: {Description: Name of an existing EC2 KeyPair
to enable SSH access to the instances, Type: String}
InstanceType:
Description: WebServer EC2 instance type
Type: String
Default: m1.small
AllowedValues: [t1.micro, m1.small, m1.large, m1.xlarge, m2.xlarge,