Merge "Disable ComputeNeutron* for cisco-nexus-ucsm"
[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   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   OctaviaAmphoraExpiryAge:
30     default: 0
31     description: The interval in seconds after which an unused Amphora will
32                  be considered expired and cleaned up. If left to 0, the
33                  configuration will not be set and the system will use
34                  the service defaults.
35     type: number
36   MonitoringSubscriptionOctaviaHousekeeping:
37     default: 'overcloud-octavia-housekeeping'
38     type: string
39   OctaviaHousekeepingLoggingSource:
40     type: json
41     default:
42       tag: openstack.octavia.housekeeping
43       path: /var/log/octavia/housekeeping.log
44
45 conditions:
46   amphora_expiry_is_zero: {equals: [{get_param: OctaviaAmphoraExpiryAge}, 0]}
47
48
49 resources:
50
51   OctaviaBase:
52     type: ./octavia-base.yaml
53     properties:
54       ServiceNetMap: {get_param: ServiceNetMap}
55       DefaultPasswords: {get_param: DefaultPasswords}
56       EndpointMap: {get_param: EndpointMap}
57       RoleName: {get_param: RoleName}
58       RoleParameters: {get_param: RoleParameters}
59
60 outputs:
61   role_data:
62     description: Role data for the Octavia Housekeeping service.
63     value:
64       service_name: octavia_housekeeping
65       monitoring_subscription: {get_param: MonitoringSubscriptionOctaviaHousekeeping}
66       logging_source: {get_param: OctaviaHousekeepingLoggingSource}
67       logging_groups:
68         - octavia
69       config_settings:
70         map_merge:
71           - get_attr: [OctaviaBase, role_data, config_settings]
72           -
73             if:
74             - amphora_expiry_is_zero
75             - {}
76             - octavia::worker::amphora_expiry_age: {get_param: OctaviaAmphoraExpiryAge}
77       step_config: |
78         include tripleo::profile::base::octavia::housekeeping
79
80