aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/vip-config.yaml
blob: 51129053919365968f7c7cc7b7a6b4dcefd40641 (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
heat_template_version: 2015-04-30

description: >
  Configure hieradata for service -> virtual IP mappings.

resources:
  VipConfigImpl:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        hiera:
          datafiles:
            vip_data:
              mapped_data:
                keystone_admin_api_vip: {get_input: keystone_admin_api_vip}
                keystone_public_api_vip: {get_input: keystone_public_api_vip}
                neutron_api_vip: {get_input: neutron_api_vip}
                # TODO: pass a `midonet_api_vip` var
                midonet_api_vip: {get_input: neutron_api_vip}
                cinder_api_vip: {get_input: cinder_api_vip}
                glance_api_vip: {get_input: glance_api_vip}
                glance_registry_vip: {get_input: glance_registry_vip}
                sahara_api_vip: {get_input: sahara_api_vip}
                swift_proxy_vip: {get_input: swift_proxy_vip}
                nova_api_vip: {get_input: nova_api_vip}
                nova_metadata_vip: {get_input: nova_metadata_vip}
                ceilometer_api_vip: {get_input: ceilometer_api_vip}
                aodh_api_vip: {get_input: aodh_api_vip}
                gnocchi_api_vip: {get_input: gnocchi_api_vip}
                heat_api_vip: {get_input: heat_api_vip}
                horizon_vip: {get_input: horizon_vip}
                redis_vip: {get_input: redis_vip}
                mysql_vip: {get_input: mysql_vip}
                public_virtual_ip: {get_input: public_virtual_ip}
                controller_virtual_ip: {get_input: control_virtual_ip}
                internal_api_virtual_ip: {get_input: internal_api_virtual_ip}
                storage_virtual_ip: {get_input: storage_virtual_ip}
                storage_mgmt_virtual_ip: {get_input: storage_mgmt_virtual_ip}
                ironic_api_vip: {get_input: ironic_api_vip}
                # public_virtual_ip and controller_virtual_ip are needed in
                # both HAproxy & keepalived.
                tripleo::haproxy::public_virtual_ip: {get_input: public_virtual_ip}
                tripleo::haproxy::controller_virtual_ip: {get_input: control_virtual_ip}
                tripleo::keepalived::public_virtual_ip: {get_input: public_virtual_ip}
                tripleo::keepalived::controller_virtual_ip: {get_input: control_virtual_ip}
                tripleo::keepalived::internal_api_virtual_ip: {get_input: internal_api_virtual_ip}
                tripleo::keepalived::storage_virtual_ip: {get_input: storage_virtual_ip}
                tripleo::keepalived::storage_mgmt_virtual_ip: {get_input: storage_mgmt_virtual_ip}
                tripleo::redis_notification::haproxy_monitor_ip: {get_input: control_virtual_ip}


outputs:
  OS::stack_id:
    description: The VipConfigImpl resource.
    value: {get_resource: VipConfigImpl}