aboutsummaryrefslogtreecommitdiffstats
path: root/base.yaml
blob: 43ce7e6fb539b74cd41ecba2e010b5055a426a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
heat_template_version: 2014-10-16
description: 'Tie OpenStack components together'
parameters:
  TemplateRoot:
    description: URL Base where all of our templates are available
    type: string
  KeystoneAdminToken:
    description: Admin Token needed for keystone
    type: string
    hidden: true
resources:
  RabbitMQ:
    type: AWS::CloudFormation::Stack
    TemplateURL:
      list_join:
        - {get_param: TemplateRoot}
        - rabbitmq.yaml
    parameters:
      InstanceType: m1.small
      KeyName: default
      RabbitMQImage: image-rabbitmq
  MySQL:
    type: AWS::CloudFormation::Stack
    TemplateURL:
      list_join:
        - {get_param: TemplateRoot}
        - mysql.yaml
    parameters:
      InstanceType: m1.small
      KeyName: default
      MySQLImage: image-mysql
  Keystone:
    type: AWS::CloudFormation::Stack
    TemplateURL:
      list_join:
        - {get_param: TemplateRoot}
        - keystone.yaml
    parameters:
      AdminToken: {get_param: KeystoneAdminToken}
      KeyName: default
      KeystoneDSN:
        list_join:
          - 'mysql://keystone:'
          - {get_attr: [ MySQL , KeystonePassword ]}
          - '@'
          - {get_attr: [ MySQL , MySQLHost ]}
          - '/keystone'
  Glance:
    type: AWS::CloudFormation::Stack
    TemplateURL:
      list_join:
        - {get_param: TemplateRoot}
        - glance.yaml
    parameters:
      KeyName: default
      HeatDSN:
        list_join:
          - 'mysql://glance:'
          - {get_attr: [ MySQL, GlancePassword ] }
          - '@'
          - {get_attr: [ MySQL, MySQLHost ]}
          - '/glance'
  Heat:
    type: AWS::CloudFormation::Stack
    TemplateURL:
      list_join:
        - {get_param: TemplateRoot}
        - heat.yaml
    parameters:
      KeyName: default
      HeatDSN:
        list_join:
          - 'mysql://heat:'
          - {get_attr: [ MySQL, HeatPassword ] }
          - '@'
          - {get_attr: [ MySQL, MySQLHost ]}
          - '/heat'