diff options
author | Amrith Kumar <amrith@tesora.com> | 2016-10-12 11:04:05 -0400 |
---|---|---|
committer | Amrith Kumar <amrith.kumar@gmail.com> | 2017-05-26 20:09:38 +0000 |
commit | 0efb9b1cba03731566136fd97d033c16d2953f75 (patch) | |
tree | 6278768404951cbe69b5bd55410ee17fc3532dd4 /trove/templates | |
parent | 012da9a334bc4e9c7711dc918eea3f011463ec82 (diff) | |
download | trove-0efb9b1cba03731566136fd97d033c16d2953f75.tar.gz |
Remove Trove's support for Heat
This is now master ... ocata has been branched.
It is important to clarify what this is because it is a confusing
statement. If you are using heat and want to use heat to provision a
trove instance, that will work. Heat can call the Trove API and things
will work.
On the other hand, if Trove wants to provision an instance, it will
not use Heat. This change eliminates all support for heat within
Trove; you can't use a heat template as the mechanism that Trove will
use to provision resources.
Depends-On: I2f2a12207581a94fb8561a6d65a3a79b4a29b063
Change-Id: I964cdd3ae67261b6fd7f666b7795b35e12788c9c
Diffstat (limited to 'trove/templates')
-rw-r--r-- | trove/templates/default.heat.template | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/trove/templates/default.heat.template b/trove/templates/default.heat.template deleted file mode 100644 index ff2eba5b..00000000 --- a/trove/templates/default.heat.template +++ /dev/null @@ -1,97 +0,0 @@ -HeatTemplateFormatVersion: '2012-12-12' -Description: Instance creation template for {{datastore_manager}} -Parameters: - Flavor: - Type: String - VolumeSize: - Type: Number - Default : '1' - InstanceId: - Type: String - ImageId: - Type: String - DatastoreManager: - Type: String - AvailabilityZone: - Type: String - Default: nova - TenantId: - Type: String -Resources: -{% for port in ports %} - {{ port.name }}: - Type: OS::Neutron::Port - Properties: - network_id: "{{ port.net_id }}" - security_groups: [{Ref: DatastoreSG}] - {% if port.fixed_ip %} - fixed_ips: [{"ip_address": "{{ port.fixed_ip }}"}] - {% endif %} -{% endfor %} - BaseInstance: - Type: AWS::EC2::Instance - Metadata: - AWS::CloudFormation::Init: - config: - files: -{% for file, content in files.items() %} - {{ file }}: - content: | - {{ content | indent(16) }} - mode: '000644' - owner: root - group: root -{% endfor %} - Properties: - ImageId: {Ref: ImageId} - InstanceType: {Ref: Flavor} - AvailabilityZone: {Ref: AvailabilityZone} - SecurityGroups : [{Ref: DatastoreSG}] - UserData: - Fn::Base64: - Fn::Join: - - '' - - ["#!/bin/bash -v\n", - "/opt/aws/bin/cfn-init\n", - "sudo service trove-guest start\n"] -{% if volume_support %} - DataVolume: - Type: AWS::EC2::Volume - Properties: - Size: {Ref: VolumeSize} - AvailabilityZone: {Ref: AvailabilityZone} - Tags: - - {Key: Usage, Value: Test} - MountPoint: - Type: AWS::EC2::VolumeAttachment - Properties: - InstanceId: {Ref: BaseInstance} - VolumeId: {Ref: DataVolume} - Device: /dev/vdb -{% endif %} - DatastoreSG: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Default Security group for {{datastore_manager}} -{% if tcp_rules or udp_rules %} - SecurityGroupIngress: -{% for rule in tcp_rules %} - - IpProtocol: "tcp" - FromPort: "{{rule.from_}}" - ToPort: "{{rule.to_}}" - CidrIp: "{{rule.cidr}}" -{% endfor %} -{% for rule in udp_rules %} - - IpProtocol: "udp" - FromPort: "{{rule.from_}}" - ToPort: "{{rule.to_}}" - CidrIp: "{{rule.cidr}}" -{% endfor %} -{% endif %} - DatabaseIPAddress: - Type: AWS::EC2::EIP - DatabaseIPAssoc : - Type: AWS::EC2::EIPAssociation - Properties: - InstanceId: {Ref: BaseInstance} - EIP: {Ref: DatabaseIPAddress} |