Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / octavia-housekeeping.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Octavia Housekeeping service.
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   OctaviaAmphoraExpiryAge:
34     default: 0
35     description: The interval in seconds after which an unused Amphora will
36                  be considered expired and cleaned up. If left to 0, the
37                  configuration will not be set and the system will use
38                  the service defaults.
39     type: number
40   MonitoringSubscriptionOctaviaHousekeeping:
41     default: 'overcloud-octavia-housekeeping'
42     type: string
43   OctaviaHousekeepingLoggingSource:
44     type: json
45     default:
46       tag: openstack.octavia.housekeeping
47       path: /var/log/octavia/housekeeping.log
48
49 conditions:
50   amphora_expiry_is_zero: {equals: [{get_param: OctaviaAmphoraExpiryAge}, 0]}
51
52
53 resources:
54
55   OctaviaBase:
56     type: ./octavia-base.yaml
57     properties:
58       ServiceData: {get_param: ServiceData}
59       ServiceNetMap: {get_param: ServiceNetMap}
60       DefaultPasswords: {get_param: DefaultPasswords}
61       EndpointMap: {get_param: EndpointMap}
62       RoleName: {get_param: RoleName}
63       RoleParameters: {get_param: RoleParameters}
64
65 outputs:
66   role_data:
67     description: Role data for the Octavia Housekeeping service.
68     value:
69       service_name: octavia_housekeeping
70       monitoring_subscription: {get_param: MonitoringSubscriptionOctaviaHousekeeping}
71       logging_source: {get_param: OctaviaHousekeepingLoggingSource}
72       logging_groups:
73         - octavia
74       config_settings:
75         map_merge:
76           - get_attr: [OctaviaBase, role_data, config_settings]
77           -
78             if:
79             - amphora_expiry_is_zero
80             - {}
81             - octavia::worker::amphora_expiry_age: {get_param: OctaviaAmphoraExpiryAge}
82       step_config: |
83         include tripleo::profile::base::octavia::housekeeping
84
85