Merge "Re-organizes Contrail services to the correct roles"
[apex-tripleo-heat-templates.git] / puppet / services / octavia-housekeeping.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Octavia Housekeeping service.
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   OctaviaAmphoraExpiryAge:
22     default: 0
23     description: The interval in seconds after which an unused Amphora will
24                  be considered expired and cleaned up. If left to 0, the
25                  configuration will not be set and the system will use
26                  the service defaults.
27     type: number
28   MonitoringSubscriptionOctaviaHousekeeping:
29     default: 'overcloud-octavia-housekeeping'
30     type: string
31   OctaviaHousekeepingLoggingSource:
32     type: json
33     default:
34       tag: openstack.octavia.housekeeping
35       path: /var/log/octavia/housekeeping.log
36
37 conditions:
38   amphora_expiry_is_zero: {equals: [{get_param: OctaviaAmphoraExpiryAge}, 0]}
39
40
41 resources:
42
43   OctaviaBase:
44     type: ./octavia-base.yaml
45     properties:
46       ServiceNetMap: {get_param: ServiceNetMap}
47       DefaultPasswords: {get_param: DefaultPasswords}
48       EndpointMap: {get_param: EndpointMap}
49
50 outputs:
51   role_data:
52     description: Role data for the Octavia Housekeeping service.
53     value:
54       service_name: octavia_housekeeping
55       monitoring_subscription: {get_param: MonitoringSubscriptionOctaviaHousekeeping}
56       logging_source: {get_param: OctaviaHousekeepingLoggingSource}
57       logging_groups:
58         - octavia
59       config_settings:
60         map_merge:
61           - get_attr: [OctaviaBase, role_data, config_settings]
62           -
63             if:
64             - amphora_expiry_is_zero
65             - {}
66             - octavia::worker::amphora_expiry_age: {get_param: OctaviaAmphoraExpiryAge}
67       step_config: |
68         include tripleo::profile::base::octavia::housekeeping
69
70