Removing unused TemplateURL
[apex-tripleo-heat-templates.git] / nova-api.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Nova API'
3 Parameters:
4   KeyName: 
5     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
6     Type: String
7     Default: default
8   InstanceType:
9     Description: Use this flavor
10     Type: String
11     Default: bm.small
12   NovaDSN:
13     Description: DSN for connecting to nova database
14     Type: String
15   NovaImage:
16     Type: String
17   KeystoneHost:
18     Type: String
19   ServicePassword:
20     Description: admin_password for setting up auth in nova.
21     Type: String
22   RabbitHost:
23     Type: String
24   RabbitPassword:
25     Type: String
26   NovaInterfaces:
27     Type: String
28     Default: eth0
29   NovaAPiSize:
30     Type: Integer
31     Default: 1
32 Resources:
33   AccessPolicy:
34     Type: OS::Heat::AccessPolicy
35     Properties:
36       AllowedResources: [ NovaApi ]
37   User:
38     Type: AWS::IAM::User
39     Properties:
40       Policies: [ { Ref: AccessPolicy } ]
41   Key:
42     Type: AWS::IAM::AccessKey
43     Properties:
44       UserName:
45         Ref: User
46   NovaApi:
47     Type: AWS::EC2::Instance
48     Properties:
49       ImageId:
50         {Ref: NovaImage}
51       InstanceType: {Ref: InstanceType}
52       KeyName: {Ref: KeyName}
53     Metadata:
54       OpenStack::Role: stateless
55       OpenStack::ImageBuilder::Elements: [ nova-api ]
56       heat: 
57         access_key_id:
58           Ref: Key
59         secret_key:
60           Fn::GetAtt: [ Key, SecretAccessKey ]
61         stack:
62           name: {Ref: 'AWS::StackName'}
63           region: {Ref: 'AWS::Region'}
64         refresh:
65           - resource: NovaApi
66       keystone:
67         host: {Ref: KeystoneHost}
68       nova:
69         db: {Ref: NovaDSN}
70       quantum:
71         host: {Ref: QuantumHost}
72       service-password: {Ref: ServicePassword}
73       admin-password: {Ref: ServicePassword}
74       rabbit:
75         host: {Ref: RabbitHost}
76         password: {Ref: RabbitPassword}
77       swift:
78         store_user: ''
79         store_key: ''
80       interfaces:
81         control: {Ref: NovaInterfaces}