Merge "Add deployment of CAs via hieradata"
[apex-tripleo-heat-templates.git] / puppet / services / haproxy.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   HAproxy service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   HAProxyStatsPassword:
22     description: Password for HAProxy stats endpoint
23     hidden: true
24     type: string
25   HAProxyStatsUser:
26     description: User for HAProxy stats endpoint
27     default: admin
28     type: string
29   HAProxySyslogAddress:
30     default: /dev/log
31     description: Syslog address where HAproxy will send its log
32     type: string
33   RedisPassword:
34     description: The password for Redis
35     type: string
36     hidden: true
37   ControlVirtualInterface:
38     default: 'br-ex'
39     description: Interface where virtual ip will be assigned.
40     type: string
41   PublicVirtualInterface:
42     default: 'br-ex'
43     description: >
44         Specifies the interface where the public-facing virtual ip will be assigned.
45         This should be int_public when a VLAN is being used.
46     type: string
47
48 outputs:
49   role_data:
50     description: Role data for the HAproxy role.
51     value:
52       service_name: haproxy
53       config_settings:
54         tripleo.haproxy.firewall_rules:
55           '107 haproxy stats':
56             dport: 1993
57         # TODO(emilien) make it composable to find which services are actually running
58         tripleo::haproxy::keystone_admin: true
59         tripleo::haproxy::keystone_public: true
60         tripleo::haproxy::neutron: true
61         tripleo::haproxy::cinder: true
62         tripleo::haproxy::glance_api: true
63         tripleo::haproxy::glance_registry: true
64         tripleo::haproxy::nova_osapi: true
65         tripleo::haproxy::nova_metadata: true
66         tripleo::haproxy::nova_novncproxy: true
67         tripleo::haproxy::mysql: true
68         tripleo::haproxy::redis: true
69         tripleo::haproxy::sahara: true
70         tripleo::haproxy::swift_proxy_server: true
71         tripleo::haproxy::ceilometer: true
72         tripleo::haproxy::aodh: true
73         tripleo::haproxy::gnocchi: true
74         tripleo::haproxy::heat_api: true
75         tripleo::haproxy::heat_cloudwatch: true
76         tripleo::haproxy::heat_cfn: true
77         tripleo::haproxy::horizon: true
78         tripleo::haproxy::ironic: true
79         tripleo::haproxy::haproxy_log_address: {get_param: HAProxySyslogAddress}
80         tripleo::haproxy::haproxy_stats_user: {get_param: HAProxyStatsUser}
81         tripleo::haproxy::haproxy_stats_password: {get_param: HAProxyStatsPassword}
82         tripleo::haproxy::redis_password: {get_param: RedisPassword}
83         tripleo::haproxy::control_virtual_interface: {get_param: ControlVirtualInterface}
84         tripleo::haproxy::public_virtual_interface: {get_param: PublicVirtualInterface}
85       step_config: |
86         include ::tripleo::profile::base::haproxy