7ba5525207
This patch movs the various db::mysql hiera settings into a 'mysql' specific service_config_settings section for each service so that these will only get applied on the MySQL service node. This follows a similar puppet-tripleo change where we create the actual databases for all services locally on the MySQL service node to avoid permission issues. Change-Id: Ic0692b1f7aa8409699630ef3924c4be98ca6ffb2 Closes-bug: #1620595 Depends-On: I05cc0afa9373429a3197c194c3e8f784ae96de5f Depends-On: I5e1ef2dc6de6f67d7c509e299855baec371f614d
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
heat_template_version: 2016-04-08
|
|
|
|
description: >
|
|
OpenStack Ceilometer Collector service configured with Puppet
|
|
|
|
parameters:
|
|
ServiceNetMap:
|
|
default: {}
|
|
description: Mapping of service_name -> network name. Typically set
|
|
via parameter_defaults in the resource registry. This
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
type: json
|
|
DefaultPasswords:
|
|
default: {}
|
|
type: json
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
MonitoringSubscriptionCeilometerCollector:
|
|
default: 'overcloud-ceilometer-collector'
|
|
type: string
|
|
CeilometerCollectorLoggingSource:
|
|
type: json
|
|
default:
|
|
tag: openstack.ceilometer.collector
|
|
path: /var/log/ceilometer/collector.log
|
|
|
|
resources:
|
|
CeilometerServiceBase:
|
|
type: ./ceilometer-base.yaml
|
|
properties:
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
MongoDbBase:
|
|
type: ./database/mongodb-base.yaml
|
|
properties:
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Role data for the Ceilometer Collector role.
|
|
value:
|
|
service_name: ceilometer_collector
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCollector}
|
|
logging_source: {get_param: CeilometerCollectorLoggingSource}
|
|
logging_groups:
|
|
- ceilometer
|
|
config_settings:
|
|
map_merge:
|
|
- get_attr: [MongoDbBase, role_data, config_settings]
|
|
- get_attr: [CeilometerServiceBase, role_data, config_settings]
|
|
service_config_settings:
|
|
get_attr: [CeilometerServiceBase, role_data, service_config_settings]
|
|
step_config: |
|
|
include ::tripleo::profile::base::ceilometer::collector
|