Merge "Make Rabbit parameters consistent"
[apex-tripleo-heat-templates.git] / puppet / services / octavia-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Octavia base service. Shared for all Octavia services
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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   Debug:
30     type: string
31     default: ''
32     description: Set to True to enable debugging on all services.
33   OctaviaDebug:
34     default: ''
35     description: Set to True to enable debugging Octavia services.
36     type: string
37   EnableConfigPurge:
38     type: boolean
39     default: false
40     description: >
41         Remove configuration that is not generated by TripleO. Used to avoid
42         configuration remnants after upgrades.
43   RabbitPassword:
44     description: The password for RabbitMQ
45     type: string
46     hidden: true
47   RabbitUserName:
48     default: guest
49     description: The username for RabbitMQ
50     type: string
51   RabbitClientUseSSL:
52     default: false
53     description: >
54         Rabbit client subscriber parameter to specify
55         an SSL connection to the RabbitMQ host.
56     type: string
57   RabbitClientPort:
58     default: 5672
59     description: Set rabbit subscriber port, change this if using SSL
60     type: number
61   NotificationDriver:
62     type: string
63     default: 'messagingv2'
64     description: Driver or drivers to handle sending notifications.
65     constraints:
66       - allowed_values: [ 'messagingv2', 'noop' ]
67
68 conditions:
69   service_debug_unset: {equals : [{get_param: OctaviaDebug}, '']}
70
71 outputs:
72   role_data:
73     description: Base role data for Octavia services
74     value:
75        service_name: octavia_base
76        config_settings:
77          octavia::debug:
78           if:
79           - service_debug_unset
80           - {get_param: Debug }
81           - {get_param: OctaviaDebug }
82          octavia::purge_config: {get_param: EnableConfigPurge}
83          octavia::notification_driver: {get_param: NotificationDriver}
84          octavia::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
85          octavia::rabbit_userid: {get_param: RabbitUserName}
86          octavia::rabbit_password: {get_param: RabbitPassword}
87          octavia::rabbit_port: {get_param: RabbitClientPort}
88